220 8745 <F8B9B704-728B-4876-9F04-2C2CC46C6355@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Marshall Clow <mclow.lists@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Mon, 20 Jan 2014 12:14:03 -0800
Lines: 66
Approved: news@gmane.org
Message-ID: <F8B9B704-728B-4876-9F04-2C2CC46C6355@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> <CAGg_6+NYK0pndHN1sUk9=Lzz2gda_c5Yb1R_MXHXEPudwM5TmA@mail.gmail.com> <CANh-dXk8xb3aWcSr7qG75hj
 SNAu5hQR0EopiELSTdDLF-OjXuw@mail.gmail.com> <CAGg_6+OHw8jAO_m0Sj1GxkiB__mxPXfMDVh7tEiZsparxqi1HA@mail.gmail.com> <1006922a-7e3c-45d8-9a93-773c0df5d9f1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_A5434CFD-9E09-45B8-83F8-E7E2FBA5BA34"
X-Trace: ger.gmane.org 1390248847 30731 80.91.229.3 (20 Jan 2014 20:14:07 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 20 Jan 2014 20:14:07 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDHIXP53REBRBEUH62LAKGQEP7PM7IA@isocpp.org Mon Jan 20 21:14:12 2014
Return-path: <std-proposals+bncBDHIXP53REBRBEUH62LAKGQEP7PM7IA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDHIXP53REBRBEUH62LAKGQEP7PM7IA@isocpp.org>)
	id 1W5LEZ-0000xK-Vw
	for gclcip-std-proposals@m.gmane.org; Mon, 20 Jan 2014 21:14:12 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id wp4sf10925637obc.9
        for <gclcip-std-proposals@m.gmane.org>; Mon, 20 Jan 2014 12:14:11 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:mime-version:subject:date
         :references:to:in-reply-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=uWk0vJu+l8aYsR05oCTDCEKXSzBWX1CDsGQ8N6Be/KI=;
        b=YwXsSGGHHf/7oc5vCv0AMH/ZbiKj8Dd0Bi/Uv+pxot55PuXXLzqvXA4aj/hmQaazoI
         Aj+W9m8duSVELAIi2l+5KNLI7Xt7bsy7yZT+qi6EOgP4H/CE+DlVGc9+4ty+AmQ9gB6q
         gvGZSHHq54x3Ka7u4CAd9OUjfXzxvzLov3+/kbrt/1a3aFhbD3lbGuy3TD2r2ayo6kod
         SPUsSTPP9ych0V1gAYlrtJFsko0U0t+tGmb1PdJpReirl/B1bindbaXFNTgpQdyfiMPB
         1b5IfxrHFuq/qR3X6+1xhfCx6in+O3KZqxMPk2Xw1WOkhEqetHQZngaM3KKj2b+dDI+V
         YFYg==
X-Gm-Message-State: ALoCoQkr383KVIulisbo9d8w6JYkzUTw++Dk2nbuNyRw+lWqlBkySxDIPYG4EPfUxMEvCMYfQroR
X-Received: by 10.182.60.37 with SMTP id e5mr7321279obr.30.1390248850987;
        Mon, 20 Jan 2014 12:14:10 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.94.51 with SMTP id cz19ls650078qeb.57.gmail; Mon, 20 Jan
 2014 12:14:10 -0800 (PST)
X-Received: by 10.236.124.17 with SMTP id w17mr59549yhh.147.1390248850284;
        Mon, 20 Jan 2014 12:14:10 -0800 (PST)
Original-Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [2607:f8b0:400e:c03::22f])
        by mx.google.com with ESMTPS id j50si2561925yhc.200.2014.01.20.12.14.10
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 20 Jan 2014 12:14:10 -0800 (PST)
Received-SPF: pass (google.com: domain of mclow.lists@gmail.com designates 2607:f8b0:400e:c03::22f as permitted sender) client-ip=2607:f8b0:400e:c03::22f;
Original-Received: by mail-pa0-f47.google.com with SMTP id kp14so7395956pab.6
        for <std-proposals@isocpp.org>; Mon, 20 Jan 2014 12:14:09 -0800 (PST)
X-Received: by 10.68.198.68 with SMTP id ja4mr20592277pbc.24.1390248849228;
        Mon, 20 Jan 2014 12:14:09 -0800 (PST)
Original-Received: from eyefive.qualcomm.com (EyeFive.qualcomm.com. [129.46.76.91])
        by mx.google.com with ESMTPSA id jn12sm5631464pbd.37.2014.01.20.12.14.07
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 20 Jan 2014 12:14:08 -0800 (PST)
In-Reply-To: <1006922a-7e3c-45d8-9a93-773c0df5d9f1@isocpp.org>
X-Mailer: Apple Mail (2.1827)
X-Original-Sender: mclow.lists@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of mclow.lists@gmail.com designates 2607:f8b0:400e:c03::22f as
 permitted sender) smtp.mail=mclow.lists@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=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:8745
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8745>

--Apple-Mail=_A5434CFD-9E09-45B8-83F8-E7E2FBA5BA34
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=windows-1252

On Jan 20, 2014, at 9:18 AM, Paul Tessier <phernost@gmail.com> wrote:

> I would also argue against string_view( char* ) doing runtime null checks=
 and creating an empty view, as this only defends against ( P =3D=3D null )=
 and not P being in protected memory, of which null falls into.=20

I agree.=20
string_view(char *) should require that the char * point to a null terminat=
ed string.

=97 Marshall


--=20

---=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--Apple-Mail=_A5434CFD-9E09-45B8-83F8-E7E2FBA5BA34
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;">On Jan 20, 2014, at 9:=
18 AM, Paul Tessier &lt;<a href=3D"mailto:phernost@gmail.com">phernost@gmai=
l.com</a>&gt; wrote:<br><div><br class=3D"Apple-interchange-newline"><block=
quote type=3D"cite"><span style=3D"font-family: LucidaGrande; font-size: 11=
px; font-style: normal; font-variant: normal; font-weight: normal; letter-s=
pacing: normal; line-height: normal; orphans: auto; text-align: start; text=
-indent: 0px; text-transform: none; white-space: normal; widows: auto; word=
-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline=
 !important;">I would also argue against string_view( char* ) doing runtime=
 null checks and creating an empty view, as this only defends against ( P =
=3D=3D null ) and not P being in protected memory, of which null falls into=
..&nbsp; </span></blockquote><div><br></div>I agree.&nbsp;</div><div>string_=
view(char *) should require that the char * point to a null terminated stri=
ng.</div><div><br></div><div>=97 Marshall</div><div><br></div><br></body></=
html>

<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 />

--Apple-Mail=_A5434CFD-9E09-45B8-83F8-E7E2FBA5BA34--

.
