220 35569 <731b1b41-353c-4df7-bd25-2a2c1e6d628f@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Myriachan <myriachan@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: std::unreachable: the message parameter
Date: Mon, 27 Nov 2017 12:36:34 -0800 (PST)
Lines: 82
Approved: news@gmane.org
Message-ID: <731b1b41-353c-4df7-bd25-2a2c1e6d628f@isocpp.org>
References: <590f2abd-b676-4241-ae0d-1c7c95b8fe7d@isocpp.org>
 <5a8666ef-278e-4636-baaa-8f71c5a54a2d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_25926_1965862028.1511814994894"
X-Trace: blaine.gmane.org 1511814994 15665 195.159.176.226 (27 Nov 2017 20:36:34 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 27 Nov 2017 20:36:34 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDKLT4PURQHRBU7O6HIAKGQEVEWER5Y@isocpp.org Mon Nov 27 21:36:30 2017
Return-path: <std-proposals+bncBDKLT4PURQHRBU7O6HIAKGQEVEWER5Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f71.google.com ([209.85.213.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKLT4PURQHRBU7O6HIAKGQEVEWER5Y@isocpp.org>)
	id 1eJQ8j-0003hM-Jf
	for gclcip-std-proposals@m.gmane.org; Mon, 27 Nov 2017 21:36:29 +0100
Original-Received: by mail-vk0-f71.google.com with SMTP id k143sf16926710vke.23
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 Nov 2017 12:36:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=M/5aNibVHJATnmlzZDn4futmfERONfk3QaXos5Avt0w=;
        b=ITWqdO8VvT/thizd5N1FuZYhy8W5kYg7z0QIHQnUj2s60WeXTw7zRTJ+QNRkKUlZZa
         Hq6qsJtn3aZ7i6V3pP4kRfmGgdiefFqvigz1VsNEv+y4o8ApYtdTz37x1ZF4d0v6Wa/5
         SC9JdjhkUTmG/ipcwqoS+HnRByu4Zi/y/GiFGUdUKMD5rFz1i6VU2CN+OLKdfmYIXDcp
         702kM24+/98yhzePy0aAhSn24HACxu5cBhT6hbOU3yWLSwtarPx720+t6HTpE7MCGkbE
         IOw/XJT1zkDW5MQIrsqDYej71eHcHibIqlnl4AA/OBLGZT/KdzMg9HpUzJMGsYlu8IYL
         /1JA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=M/5aNibVHJATnmlzZDn4futmfERONfk3QaXos5Avt0w=;
        b=EiWzyN9QxAXo4oHIavoy5Lh7xxSPlZYcq0zqi7OhhlyTXUpOeHmb9aRDgVAKV3dQlR
         u7Vj42kd6Ysp1NuiV2rrMQBmxdfAcM89lqZJFXtmHlXRsjQ0JDV+eLADomycWDzSoCuY
         4q8Ko+jhE3Huei22HAiScpaJTdrx8nFSLMUL1SFcjNmm6WK3MQ6iBqqD6MYKCsXjaV6J
         o3PfDiNLFmBaelXkMSnX3cpmcCWBCFs8RoCxQbN+zrT+JuXVPvJacHeyvKsAPcGItV6C
         htC2zMnV6CWhzJNNKfeUdYiq3/CvSXwdP64J7aVCUtfGzSOc8YNS9VKuT+TWu2QK42Bg
         +xDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=M/5aNibVHJATnmlzZDn4futmfERONfk3QaXos5Avt0w=;
        b=VP+W+/2YmbtKM09qelK6bRpMTyfTjLz/lmxXsVNrCcGnA4Wg+O1oP3QPr0oca1qXVf
         LXEmkcLElSVkPrtvIo8KDxwojdvLJ/qGpIuKTDBMlo5aEqqwYTu0kOJuQD+9AavsdrMw
         kmQzEw+Ns1Dq5PeEYjybd4NgDf+Gupo44AsNPZYJu7MlAM+J9X+qYkVC6sYI7vyHfe8B
         V1doKP8hFoYdgF+tWpxjhV9Swk0rOpfJ3VyQRoUE6xFAoZ5bIDCGMvTFzkZWmnz5+kjC
         X5+BWppK+cJAAPNFEGg4cbeLWnFsNxWaSKLMLxIjAJOQCeOhTRcAj3PZ144qygwJVRll
         MwIw==
X-Gm-Message-State: AJaThX7vJY0Bj2YrEN8pZ5HyWQvTWAIgc1VVmXwEq3vfs7i0RqJY4IRF
	lf1R1fnmDJzR50M6wrTbXa1rGA==
X-Google-Smtp-Source: AGs4zMav5rhy0i92LaasSYJdrGWGSLQhN5+fVeukagrhgbWoposQ9AzvRLU/n5P/fHxmh3D/xsj2TQ==
X-Received: by 10.176.69.193 with SMTP id u59mr19512179uau.85.1511814996726;
        Mon, 27 Nov 2017 12:36:36 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.159.45.129 with SMTP id v1ls2224636uaj.18.gmail; Mon, 27 Nov
 2017 12:36:35 -0800 (PST)
X-Received: by 10.31.162.19 with SMTP id l19mr1519447vke.4.1511814995335;
        Mon, 27 Nov 2017 12:36:35 -0800 (PST)
In-Reply-To: <5a8666ef-278e-4636-baaa-8f71c5a54a2d@isocpp.org>
X-Original-Sender: myriachan@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35569
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35569>

------=_Part_25926_1965862028.1511814994894
Content-Type: multipart/alternative; 
	boundary="----=_Part_25927_1531922935.1511814994894"

------=_Part_25927_1531922935.1511814994894
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wednesday, November 22, 2017 at 8:10:06 PM UTC-8, Arthur O'Dwyer wrote:
>
>
> Assuming (correctly IMO) that the 'message' parameter is a `const char*`,=
=20
> it points to a null-terminated sequence of characters, which by definitio=
n=20
> are in the execution character set. The translation of a string literal (=
if=20
> any) from the source character set into a sequence of bytes in the=20
> execution character set has, by runtime, already happened; and therefore=
=20
> std::unreachable() doesn't need to do anything special to deal with it.
>
> =E2=80=93Arthur
>

Should I add a form that takes a std::string_view in addition to the const=
=20
char * form?  Or only have a string_view form, since std::string_view has a=
=20
NUL-terminated const char * constructor?

Melissa

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/731b1b41-353c-4df7-bd25-2a2c1e6d628f%40isocpp.or=
g.

------=_Part_25927_1531922935.1511814994894
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, November 22, 2017 at 8:10:06 PM UTC-8, Arthu=
r O&#39;Dwyer wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;ma=
rgin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=
=3D"ltr"><br><div>Assuming (correctly IMO) that the &#39;message&#39; param=
eter is a `const char*`, it points to a null-terminated sequence of charact=
ers, which by definition are in the execution character set. The translatio=
n of a string literal (if any) from the source character set into a sequenc=
e of bytes in the execution character set has, by runtime, already happened=
; and therefore std::unreachable() doesn&#39;t need to do anything special =
to deal with it.</div><div><br></div><div>=E2=80=93Arthur</div></div></bloc=
kquote><div><br></div><div>Should I add a form that takes a std::string_vie=
w in addition to the const char * form?=C2=A0 Or only have a string_view fo=
rm, since std::string_view has a NUL-terminated const char * constructor?</=
div><div><br></div><div>Melissa<br></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/731b1b41-353c-4df7-bd25-2a2c1e6d628f%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/731b1b41-353c-4df7-bd25-2a2c1e6d628f=
%40isocpp.org</a>.<br />

------=_Part_25927_1531922935.1511814994894--

------=_Part_25926_1965862028.1511814994894--

.
