220 8713 <942afc35-d655-4a32-a482-1c7cbf299d1c@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: gornishanov@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Sun, 19 Jan 2014 14:55:24 -0800 (PST)
Lines: 75
Approved: news@gmane.org
Message-ID: <942afc35-d655-4a32-a482-1c7cbf299d1c@isocpp.org>
References: <8045a4d2-721d-4725-8bb7-7a91b6f53ec8@isocpp.org>
 <186E0927-C962-4E34-AED0-E7509DD1F0A0@gmail.com>
 <7aad44d8-6b4e-438a-b309-bd898b994b34@isocpp.org>
 <9C2C439F-7983-4224-B272-53CAD0E2E456@gmail.com>
 <CANh-dXnYg=1kmm1nJdSnTXmYyfBxbLTD9b+wecT+eZm5nPkf2A@mail.gmail.com>
 <CAGg_6+Pz0gQQcY_Vq6LTMFc-4iOJvVN1O3jc3gjh0J2egBTgGg@mail.gmail.com>
 <CANh-dX=Dr35_jvxadm2HWxNk6e87y8V+Dkyiw+syBfgfdTfobw@mail.gmail.com>
 <CAPOJ94O19N207rjm73tKJSc7K55kOzYxHbY9wtXquk=_uqqMsA@mail.gmail.com>
 <8E74B747-7450-41E0-8D1E-48C2D6F81535@gmail.com>
 <d17db29f-8da3-402f-834a-66b02e4d9621@isocpp.org>
 <3a3d55c0-20cb-40ff-ae46-84663d21f44d@isocpp.org>
 <dc982a9d-541c-4472-96f8-bed3327edeb0@isocpp.org>
 <a63b7659-74d7-465b-8f6e-69cf466cac57@isocpp.org>
 <53d0e0c3-7eee-4853-886d-624bf4b22fb4@isocpp.org>
 <52DC3ED7.9070707@knejp.de>
 <CAM0iMhwJXMamGN94_-hU_0fO3Cnk3aJgVexsjgHz45wEo-eWhA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_837_23178409.1390172124703"
X-Trace: ger.gmane.org 1390172120 32614 80.91.229.3 (19 Jan 2014 22:55:20 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 19 Jan 2014 22:55:20 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC47RF4IW4GRBXVP6GLAKGQEX4RTWKQ@isocpp.org Sun Jan 19 23:55:28 2014
Return-path: <std-proposals+bncBC47RF4IW4GRBXVP6GLAKGQEX4RTWKQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f198.google.com ([209.85.223.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC47RF4IW4GRBXVP6GLAKGQEX4RTWKQ@isocpp.org>)
	id 1W51H5-00029Z-GE
	for gclcip-std-proposals@m.gmane.org; Sun, 19 Jan 2014 23:55:27 +0100
Original-Received: by mail-ie0-f198.google.com with SMTP id ar20sf11971118iec.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 19 Jan 2014 14:55:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        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
         :content-type;
        bh=5oNJOxBnpgkGRntLBm3KDnhPkIi8PGX+oVAISr6BFbA=;
        b=iPVSLakJ1MleXEEjBmueiqbEfa0fPp0xgspMBdk3Uy14UC03SY7T2mue9ZqGUt5J1m
         rTIA2gQs/sU4F4inZBu5d7CP9mdLQyEDVrbqSTSogsK1Hh7u8Y5vdcFyWIo1fB3u1FVU
         TW12Q7zgDcNYLAXVHFRk6SbO1iw8QGhg0nhGw1YgUlVnYMdVP0mmSGuJDuHwuVXVS4Zi
         FjG99P4ybjyWrJ8Ol2Jx+qvsFjWAAtYlphpmOgk+shVNwHUH/C9R1Yqkf+8Nx+Lm/LQg
         dsfMotWho4rFL9BwOnRA30PsnzBFT9eiP2C/muAM83ZklGnE/l+2CmZ21vea+Jmg4u+k
         tqqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=5oNJOxBnpgkGRntLBm3KDnhPkIi8PGX+oVAISr6BFbA=;
        b=m1OFNm9l670POlIb+uYzrTy/t/fnkbeDYgHc8Uxz4bbhsCfMkhElLzk/ggtxY4O/vV
         erwyddwtHkOGq3bC8UBNJDpKhuCJaI7srygMMNlVEwAD2UMOKmyZdTIMrEqFEMtBkzrR
         Oyc++a926Y42sFGzeSFKY2ev4g4pBw8mCAIuKkYPCuSi1V87XIsTEtvFBPrGX4tmHN4P
         YRe2iQPvmMDik8BwHV7568VCWQJy4R39Q4deiTPer86AagZ88k72RDaWU+j0julxH6D5
         6WtcN2FtfzAIhwVsW2VsCfzuYOv/+KZeLgk4VHgDUwiG5IK4kqRiZZ8VW771xZ0vbSwV
         kZnA==
X-Gm-Message-State: ALoCoQmqOekJ0y9cRDOibahkoI4tsns0rVu79STuw2a1e90W0Z0nQyYg5y0onP/J9OEcdaqKNSva
X-Received: by 10.50.33.47 with SMTP id o15mr5697680igi.0.1390172126617;
        Sun, 19 Jan 2014 14:55:26 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.51.15.229 with SMTP id fr5ls1357483igd.13.canary; Sun, 19 Jan
 2014 14:55:26 -0800 (PST)
X-Received: by 10.50.152.41 with SMTP id uv9mr183684igb.13.1390172126128;
        Sun, 19 Jan 2014 14:55:26 -0800 (PST)
In-Reply-To: <CAM0iMhwJXMamGN94_-hU_0fO3Cnk3aJgVexsjgHz45wEo-eWhA@mail.gmail.com>
X-Original-Sender: gornishanov@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:8713
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8713>

------=_Part_837_23178409.1390172124703
Content-Type: text/plain; charset=UTF-8

Alexander:

The current proposal requires data != null. Ok. But IMHO there is no reason 
for this. It just

> restricts the cases where a string_view would be useful.
>

I see, would replacing

constexpr basic_string_view(const charT* str, size_type len);

*Requires*: str is not a null pointer and [str,str + len) is a valid range.

with

constexpr basic_string_view(const charT* str, size_type len);

*Requires*: str is not a null pointer and [str,str + len) is a valid range
or str == nullptr and len == 0.

address your concerns?



-- 

--- 
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/.

------=_Part_837_23178409.1390172124703
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Alexander:</div><div><br></div><div>The current propo=
sal requires data !=3D null. Ok. But IMHO there is no reason for this. It j=
ust</div><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8=
ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-w=
idth: 1px; border-left-style: solid;"><div dir=3D"ltr"><div><div class=3D"g=
mail_quote">
<div style=3D"font-family: arial,helvetica,sans-serif;">restricts the cases=
 where a string_view would be useful.</div></div></div></div></blockquote><=
div><br></div><div>I see, would replacing</div><div><br></div><div><pre><co=
de>constexpr basic_string_view(const charT* str, size_type len);</code></pr=
e><div class=3D"attributes"><p><i>Requires</i>: str is not a null pointer a=
nd [str,str + len) is a valid range.</p><p>with</p></div></div><div><pre><c=
ode>constexpr basic_string_view(const charT* str, size_type len);</code></p=
re><div class=3D"attributes"><p><i>Requires</i>: str is not a null pointer =
and [str,str + len) is a valid range<br>or str =3D=3D nullptr and len =3D=
=3D 0.</p><p>address your concerns?</p><p><br></p><p><br></p></div></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 />

------=_Part_837_23178409.1390172124703--

.
