220 8653 <CANh-dX=Dr35_jvxadm2HWxNk6e87y8V+Dkyiw+syBfgfdTfobw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Jeffrey Yasskin <jyasskin@google.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Fri, 17 Jan 2014 12:22:21 -0800
Lines: 23
Approved: news@gmane.org
Message-ID: <CANh-dX=Dr35_jvxadm2HWxNk6e87y8V+Dkyiw+syBfgfdTfobw@mail.gmail.com>
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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1389990158 9748 80.91.229.3 (17 Jan 2014 20:22:38 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 17 Jan 2014 20:22:38 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDDM34EO6QDRBE5C42LAKGQEI5FO3RY@isocpp.org Fri Jan 17 21:22:45 2014
Return-path: <std-proposals+bncBDDM34EO6QDRBE5C42LAKGQEI5FO3RY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f200.google.com ([209.85.213.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDDM34EO6QDRBE5C42LAKGQEI5FO3RY@isocpp.org>)
	id 1W4FwC-0000Im-I4
	for gclcip-std-proposals@m.gmane.org; Fri, 17 Jan 2014 21:22:44 +0100
Original-Received: by mail-ig0-f200.google.com with SMTP id k19sf4172132igc.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 17 Jan 2014 12:22:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=mime-version: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=QC+m2g42oinV0Cn+pPDYtymWD9CHKRlFQkprgLvyhEI=;
        b=JxctzyDTikPmI+QYgEvZpN90Pv+3/00x4ZkQPO0/xEHixi1L9jhhT+fqcM6DuFjH/N
         PT7KiQsDJf1EiTKuGbUXuWub0apoVqeF3fsRPKBfU0Rm6Ma/5IrFTWjL/aAeF2OfR/LJ
         X6z7o1JGsEN6BaXEFiTFIlfIdAzh7Nc3nLBOmqR1phpXcFXQhm1J/F8O9C05LAOp1yiS
         /nCg8FlrN+ggWiD3EnLWyXt3SsGIe0fLqyFsjPgCA7DY5RxJnFTGZ7AeRvk778RvPCIh
         LfsD7oirrFn4+w5TAExOoSgIt7U5vYGPutjEMl91acJTx7xOm0oka85vJ90dAOmMBdmZ
         PoUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version: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=QC+m2g42oinV0Cn+pPDYtymWD9CHKRlFQkprgLvyhEI=;
        b=QZjqfJMqRiUXbxU+IlgVWF7cM3JmtoZguqnnVsSu9Cf8dA4VtOmtKhK2S2ShcTNkpF
         AiGH2YqlFHiy7XIRKnpaTT1hDHALyL73cxHeoG/Nf8lTOC+zyIunwh/+dIf87aSWTJ7O
         cupnI2xwwVlGsS7dVbLaoce+ZSrifkV2gvtXIXk0wJym60Srd2n44JbUxHSkkIcelCvb
         TCCcUkbGPTTo7NtB/HaII9XkFXDWAs/hgK57sl/MuHL85hJV5TtKg8V2k76a/qi3aXfS
         4eP04GAJJ1VGGdCyZiHXL8YC7r5KhmLJ1bsFh7W89bx7fQVXuc+7KD/N0oCkkqG/fvJU
         JzPQ==
X-Gm-Message-State: ALoCoQl5/oufpnXR3I/8PebIziyKvabdoeZNCyp63Cj9NVY1ZakMn4b6YWuuhulUJ63ndUZj+mLp
X-Received: by 10.182.111.227 with SMTP id il3mr1469810obb.41.1389990163633;
        Fri, 17 Jan 2014 12:22:43 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.24.69 with SMTP id s5ls576172qef.17.gmail; Fri, 17 Jan 2014
 12:22:42 -0800 (PST)
X-Received: by 10.140.37.146 with SMTP id r18mr6301397qgr.61.1389990162879;
        Fri, 17 Jan 2014 12:22:42 -0800 (PST)
Original-Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [2607:f8b0:400d:c01::232])
        by mx.google.com with ESMTPS id x4si14041925qad.12.2014.01.17.12.22.42
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 17 Jan 2014 12:22:42 -0800 (PST)
Received-SPF: pass (google.com: domain of jyasskin@google.com designates 2607:f8b0:400d:c01::232 as permitted sender) client-ip=2607:f8b0:400d:c01::232;
Original-Received: by mail-qc0-f178.google.com with SMTP id m20so4125852qcx.9
        for <std-proposals@isocpp.org>; Fri, 17 Jan 2014 12:22:42 -0800 (PST)
X-Received: by 10.140.27.103 with SMTP id 94mr6343809qgw.45.1389990162560;
 Fri, 17 Jan 2014 12:22:42 -0800 (PST)
Original-Received: by 10.229.208.138 with HTTP; Fri, 17 Jan 2014 12:22:21 -0800 (PST)
In-Reply-To: <CAGg_6+Pz0gQQcY_Vq6LTMFc-4iOJvVN1O3jc3gjh0J2egBTgGg@mail.gmail.com>
X-Original-Sender: jyasskin@google.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of jyasskin@google.com designates 2607:f8b0:400d:c01::232 as permitted
 sender) smtp.mail=jyasskin@google.com;       dkim=pass header.i=@google.com;
       dmarc=pass (p=REJECT dis=NONE) header.from=google.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:8653
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8653>

On Fri, Jan 17, 2014 at 12:18 PM, Nevin Liber <nevin@eviloverlord.com> wrote:
> On 17 January 2014 14:11, Jeffrey Yasskin <jyasskin@google.com> wrote:
>>
>> If it is, I intend to also
>> remove the precondition on the string_view(data, size) to let people
>> explicitly put nullptr in.
>
>
> I'd like to, mainly because it makes it easy to create a string_view from a
> vector<char> by using v.data() and v.size().  Having to special case a check
> for nullptr (such as in string::string(const char*, size_t)) for what is
> otherwise a perfectly valid 0-sized range is just annoying.

Ah, vector.data() doesn't guarantee non-null results. :( That's a good argument.

-- 

--- 
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/.

.
