220 35576 <4204407.tFQ3njSWTE@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::unreachable: the message parameter
Date: Mon, 27 Nov 2017 15:53:22 -0800
Lines: 25
Approved: news@gmane.org
Message-ID: <4204407.tFQ3njSWTE@tjmaciei-mobl1>
References: <590f2abd-b676-4241-ae0d-1c7c95b8fe7d@isocpp.org> <731b1b41-353c-4df7-bd25-2a2c1e6d628f@isocpp.org> <CADvuK0Kx=3tuEtpAQvs3D75+EJnR6ueeJ6vWzEzWBnrD7ByQeQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1511826804 15132 195.159.176.226 (27 Nov 2017 23:53:24 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 27 Nov 2017 23:53:24 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB46K6LIAKGQEHL27RGY@isocpp.org Tue Nov 28 00:53:20 2017
Return-path: <std-proposals+bncBCB4TK757YBRB46K6LIAKGQEHL27RGY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f197.google.com ([209.85.216.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB46K6LIAKGQEHL27RGY@isocpp.org>)
	id 1eJTDA-0003Nv-Ny
	for gclcip-std-proposals@m.gmane.org; Tue, 28 Nov 2017 00:53:16 +0100
Original-Received: by mail-qt0-f197.google.com with SMTP id h42sf22390541qtk.23
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 Nov 2017 15:53:24 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1511826804; cv=pass;
        d=google.com; s=arc-20160816;
        b=0ew6EDQ9wzxhzRUEAQJQcdN4R/vMqbP6eFlpGuoii2Bjdg/seEJDEaspOSXMvWVvAm
         ovVXr1mMvPnfmDGb2YI3IffQlCgrDuWnhazMmlWWIvDbvgsLQPCURL1hIiVjlY/KwJ5Y
         EzFMOUUTJGidM0hQENcNK2Fw7jxNRkHg/wO/e2rFWCsx6iHqkbTzt6/UNpADvtFMba3v
         C5LbHXPrEEXQmrjsW1N5CRmdHyMBW0JgdX6e6Z1HyhvXD+TGm6eEpWByVqYEX3VHvKHv
         Skbb8TEOeHYIOuiOf11/BqiDXEfAIHZJcWcB4L+8r3ny/ZpE8SGf7ymiSpaXEBX/562h
         Fr+w==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=wEvPpGpZOJJVfCnjsz/Xwta/Eylmd8E3Ik/DzescX+k=;
        b=WcZxy4jr/i7m71/AVc0lR6IpXSDsHfIVpZY9hk/t57xScPoJBjoODbHfkjk3j8NeIk
         bvFVnRLFOlvU2S7kuu62D9+rflK98pxV+JW5ktu9PIeCAYzsKRl9G1vrgFD4+Pomi0HV
         4tdxUflEXsHRFicjDehsFxxFEVhIRrhUTXTqv0LsMHQxPNRDM5XXi6/TNwIYqYVFjb83
         QiY+6PytRodiAIAIJST5/mMY6w1RGA/OdxgPE7HHGwoh0RxIf/cFl3ZU9fgM4czkp1UI
         4eE2IjV8z/qnin8P021QPIfXOtWitlN7Wh72Hdl8OYBuq4DjOzQKEU7zADUgT6e4dADC
         InMw==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=wEvPpGpZOJJVfCnjsz/Xwta/Eylmd8E3Ik/DzescX+k=;
        b=0roIrEiHe9Vlh9UbzS8Q/Wx73rEsHM6vc2YY+NsQb1StLagifKU050lUstMbDwMgrI
         XkJvBWsqRrPaR6up3c6AzdDlMJfH/MBmvUBn9l4qwyTsIqSdecSd68jMqt4aDo+Gd39s
         zmx89LzfzJB+64KltNpTV/gL4WfykJ2OA6G4A+lTX9ATTPgiJ6CtHgydErmTO5Wj3zx2
         lWDP3Zv9fbBfDDCxq/YLupka7tvCcztomy5p85C6N7izC02W0XNfyDFP08Id9syQcEhb
         yKOxvv5HzYGHzy3UkcUpzhwELJBbUmFo4R1iRcoZe9eKoSny36imsdq1dwcXjrIhimfh
         DJGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=wEvPpGpZOJJVfCnjsz/Xwta/Eylmd8E3Ik/DzescX+k=;
        b=kftJiEKcD7yb4NcnCEPW1tQXkufVFI4qvknHNz4xSt0KTDI6BHyoG7f/CK6CE9nG6W
         Y+B7j4CYfcTIhvR+I/CuhxfMshpU4lqbbcfjxzagqU42fgsOiNpjzbI+ec6ZcmvJpk2u
         4C3d9YXjlsplpncq2TAxQ9aAI5/6y3z5SBT0hzdk4weXAUE0ISgc0IkZ/lxctkGmg8co
         F3hlFL167trV6v3T9Uko6isHoVE2Uuh6hzkvn2JUkl6z0GxrHO6spOumZiV/P04A2OzB
         B1s3i4vxdD0EOHx5Crdz5KGynKm74I4k6mvJaSU/8X2WGQiQ76aoUEuKhzwjd66YVHfA
         uEdQ==
X-Gm-Message-State: AJaThX4mMV/rvhYOcJUs4xUFxcXmwwVNDLkPnyQm1hFiwSKHqzULLhn3
	QCMiVnzv5aXdIIKH3GAQ3adq0A==
X-Google-Smtp-Source: AGs4zMZuQP1fERsbxrAoeYb+H5DCCwNR7LX7zOM+gXNicU+5v/UkA7eP1PELkSNqHRX8Xtuh0qr0+w==
X-Received: by 10.200.22.201 with SMTP id y9mr31898519qtk.7.1511826804104;
        Mon, 27 Nov 2017 15:53:24 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.237.62.162 with SMTP id n31ls8171814qtf.4.gmail; Mon, 27 Nov
 2017 15:53:23 -0800 (PST)
X-Received: by 10.55.19.19 with SMTP id d19mr56411839qkh.189.1511826803385;
        Mon, 27 Nov 2017 15:53:23 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1511826803; cv=none;
        d=google.com; s=arc-20160816;
        b=VzqJ/lnmpktPEC5nJfY4uBki+fe0ZqHoIOFUN2RZDklS5SObx0cb9tf+jm3SNCaFA0
         gndogpzx/AwhISAN530vLiYdPOJM6msASSWguOx6bKa5PCOtnLPa3Ymwk9HmWvfXS/wC
         9nysIjr1INhjd3Ekzq2GTdNi4ahOQn1BcMO5nCiafmvQIbdNWCsrZYmar0H6nSw1aZ7S
         Q6nrAJJ8RbxjeKuoIjNdYLL2aDt6isRp6sU428nRdlzFGtcNbZy9Ys3sfcFoExKwWZMs
         yOyntCepcbxldgAKnbE61oTyX+wFtXaLTVJCAbUNLVHQrRMK3eJscHPxnwBxXCWOCNRw
         Q66w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=LzCz9LZ588GLp92FEH/UcFXDpcoc6rs0+oVrFfqFbF4=;
        b=HrePVRnqnHKleOJytYAQBFMC7RuqAUcxgVGyWSGGr/MljTzRCu5uNpgsMEXCcHdxlO
         XjYezryo6mcQZay++ivhBAf0DKijUb83KmLJFsto2hDld7b1hw9+NmsrXPsBPiLw+/A0
         3qDOtdPq4pnSYcEPTfxrlV/X60O//Ke1Bwjh/CD0viajLCdCF0tjdTc6kchyo29j+u/J
         ysHtjpFes1+BmL2FganIkw42oHx20r7796rmf+EFRgIWz623a1dX8GgpTZueOBsaNXHO
         RKLicapKeId9Xg/4jHGKNL88hT7y8SThcQs89242/Dw1lIDDW+YzTpzOafe3tHfHdXBh
         ELhQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id r53si7573324qtr.251.2017.11.27.15.53.23
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 27 Nov 2017 15:53:23 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (jfdmzpr03-ext.jf.intel.com [134.134.139.72])
	by smtp.macieira.info (Postfix) with ESMTPSA id 1942A2ACC
	for <std-proposals@isocpp.org>; Mon, 27 Nov 2017 15:53:23 -0800 (PST)
In-Reply-To: <CADvuK0Kx=3tuEtpAQvs3D75+EJnR6ueeJ6vWzEzWBnrD7ByQeQ@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted
 sender) smtp.mailfrom=thiago@macieira.org
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:35576
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35576>

On Monday, 27 November 2017 12:56:25 PST Arthur O'Dwyer wrote:
> - Consider that the expected usage-of-that-input is that the implementation
> will pass it to fputs(stderr) or some other I/O mechanism on the same
> approximate level of complexity as abort(). These I/O mechanisms often
> natively take (const char *), and often cannot quite as easily handle
> non-null-terminated (std::string_view).

Actually, in this case it is easy to handle non-null-terminated:

	fwrite(msg, msg.size(), 1, stderr);

But only in this one case. If you wanted to use one of many other logging 
tools, like Win32's OutputDebugString(), syslog(), or sd_journal_send(), you'd 
be right.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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 email 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/4204407.tFQ3njSWTE%40tjmaciei-mobl1.

.
