220 8727 <CAGg_6+NYK0pndHN1sUk9=Lzz2gda_c5Yb1R_MXHXEPudwM5TmA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Mon, 20 Jan 2014 00:01:16 -0600
Lines: 70
Approved: news@gmane.org
Message-ID: <CAGg_6+NYK0pndHN1sUk9=Lzz2gda_c5Yb1R_MXHXEPudwM5TmA@mail.gmail.com>
References: <CAGNvRgDH=X2h4K_u3zOu7gUNuQbAcNHGNh=HfCRO9qG1mmiG1w@mail.gmail.com>
 <CANh-dXnytwWwS7E_BGA-xK8E-zw788TJKzM=HJdC-9JbF7+gTQ@mail.gmail.com>
 <104254A6-C69A-4571-8455-89D7E466D493@gmail.com> <CANh-dXngzdnwZZnLRxd=AXQcqLaQky9Cpdw6pkbH8tFqRyZavw@mail.gmail.com>
 <6a95bf9c-55c9-4ae2-966f-d1b1f4df6a37@isocpp.org> <52D9E336.1060801@knejp.de>
 <1B534FD7-B385-4A7E-A718-3C73F0AB61DC@gmail.com> <11f13f8f-1270-427c-8942-94027a181ff4@isocpp.org>
 <20140119174431.GA16875@faust.lysator.liu.se> <CAPOJ94Nt8tinr8hGeR-=rWZS0a529kY38NU-yo6BYM6kVo7czg@mail.gmail.com>
 <20140119192238.GA19497@faust.lysator.liu.se> <60842af6-5ec4-4364-b2d5-a0be9d578bd6@isocpp.org>
 <6c82c4ae-c144-443a-81b2-ea1a6b645601@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=f46d0421a6391fae4f04f060a164
X-Trace: ger.gmane.org 1390197711 11659 80.91.229.3 (20 Jan 2014 06:01:51 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 20 Jan 2014 06:01:51 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBVXX6KLAKGQE2J7GEYQ@isocpp.org Mon Jan 20 07:01:59 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBVXX6KLAKGQE2J7GEYQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-we0-f198.google.com ([74.125.82.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBVXX6KLAKGQE2J7GEYQ@isocpp.org>)
	id 1W57vr-0002R4-27
	for gclcip-std-proposals@m.gmane.org; Mon, 20 Jan 2014 07:01:59 +0100
Original-Received: by mail-we0-f198.google.com with SMTP id p61sf11262856wes.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 19 Jan 2014 22:01:58 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=ExApF5/kstaanXOVpRdJA41b6gt55A9jpQBfVV/hDwM=;
        b=K8QC1U73li4g+VR8usGBnZgkpdX/pKTdF8+VBHbUlTaajYvZzz0j+Emq+EFXcDL3Xt
         aHa27naBoASx4oyX6YjZPjQslKsAFnNMvkLQ6z1FgJFdSImUjN4oewngR8sPMlqJybKK
         qkmhVEQ3rf3Ns59wcKexz+vep8Erv5CeRhtmsyaJn1kl0ROg1dhh7HELcFK8ciJjeTVU
         GMvCLRHIOJtr04AJId0htTMSx7LLSo4qWTZUFKePpje8YrxSoqZXIHmdXWLqzsSAJgtE
         po+HkB216yg66iUk2KdgDLhot06HWnYj0X0tqqWTFDqDWTa95x5SwTZp4n1NUFPMNnON
         KL3g==
X-Gm-Message-State: ALoCoQk2WcmngImmaD1G6weMFTklaDWV8UpO6US3TbveL+oXuyUWqKwNRL94M9qCoQpk/UNwvG4+
X-Received: by 10.15.51.132 with SMTP id n4mr7358177eew.3.1390197718766;
        Sun, 19 Jan 2014 22:01:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.77.229 with SMTP id v5ls417269wiw.23.canary; Sun, 19 Jan
 2014 22:01:58 -0800 (PST)
X-Received: by 10.180.80.103 with SMTP id q7mr8545884wix.14.1390197718082;
        Sun, 19 Jan 2014 22:01:58 -0800 (PST)
Original-Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [2a00:1450:400c:c03::236])
        by mx.google.com with ESMTPS id j20si115704wiw.85.2014.01.19.22.01.57
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 19 Jan 2014 22:01:57 -0800 (PST)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c03::236 as permitted sender) client-ip=2a00:1450:400c:c03::236;
Original-Received: by mail-we0-f182.google.com with SMTP id w62so6597581wes.13
        for <std-proposals@isocpp.org>; Sun, 19 Jan 2014 22:01:57 -0800 (PST)
X-Received: by 10.180.79.106 with SMTP id i10mr8331473wix.23.1390197717575;
 Sun, 19 Jan 2014 22:01:57 -0800 (PST)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.121.163 with HTTP; Sun, 19 Jan 2014 22:01:16 -0800 (PST)
In-Reply-To: <6c82c4ae-c144-443a-81b2-ea1a6b645601@isocpp.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:400c:c03::236 as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8727
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8727>

--f46d0421a6391fae4f04f060a164
Content-Type: text/plain; charset=ISO-8859-1

On 19 January 2014 22:07, Paul Tessier <phernost@gmail.com> wrote:

> Why would ( nullptr, 3 ) be considered an empty view?
>

It would be undefined behavior.

My personal preference for all this is that string_view(nullptr, 0) be
allowed, and it is a Quality of Implementation issue whether or not
sv.data() can ever return a nullptr; i.e., it would be allowed to return
any legal pointer it wants for an empty string_view.

> --
>
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--f46d0421a6391fae4f04f060a164
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 19 January 2014 22:07, Paul Tessier <span dir=3D"ltr">&=
lt;<a href=3D"mailto:phernost@gmail.com" target=3D"_blank">phernost@gmail.c=
om</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr"><div><div class=3D"h5"><span style=3D"color:rgb(34,34,34)"=
>Why would ( nullptr, 3 ) be considered an empty view?</span><br></div></di=
v></div></blockquote><div><br></div><div>It would be undefined behavior.</d=
iv>

<div><br></div><div>My personal preference for all this is that string_view=
(nullptr, 0) be allowed, and it is a Quality of Implementation issue whethe=
r or not sv.data() can ever return a nullptr; i.e., it would be allowed to =
return any legal pointer it wants for an empty string_view.</div>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>--=A0<br></div></div><=
/blockquote></div>=A0Nevin &quot;:-)&quot; Liber=A0 &lt;mailto:<a href=3D"m=
ailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord.com</a>&=
gt;=A0 (847) 691-1404
</div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--f46d0421a6391fae4f04f060a164--

.
