220 8674 <52D9E336.1060801@knejp.de> article
Path: news.gmane.org!not-for-mail
From: Miro Knejp <miro@knejp.de>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Sat, 18 Jan 2014 03:13:10 +0100
Lines: 17
Approved: news@gmane.org
Message-ID: <52D9E336.1060801@knejp.de>
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> <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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: ger.gmane.org 1390011187 2910 80.91.229.3 (18 Jan 2014 02:13:07 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 18 Jan 2014 02:13:07 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC6ONSXJ54LBBMOG46LAKGQEIVWZM7Q@isocpp.org Sat Jan 18 03:13:12 2014
Return-path: <std-proposals+bncBC6ONSXJ54LBBMOG46LAKGQEIVWZM7Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-bk0-f70.google.com ([209.85.214.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC6ONSXJ54LBBMOG46LAKGQEIVWZM7Q@isocpp.org>)
	id 1W4LPG-0001XZ-UA
	for gclcip-std-proposals@m.gmane.org; Sat, 18 Jan 2014 03:13:06 +0100
Original-Received: by mail-bk0-f70.google.com with SMTP id u12sf8447113bkz.5
        for <gclcip-std-proposals@m.gmane.org>; Fri, 17 Jan 2014 18:13:06 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to
         :subject:references: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=piW7rbbdTLcEJdOfKTpgQM4+Zx8zzIWieOO7GDYlD3o=;
        b=kKL87FD2haFJpXm452VIDbmKmFO/ZFkvBhpaOi5RGPuimXFh3pWaYt5GtmJEy89f7w
         NHT/V3sqVTAkeYJ+XMooY35cAG3DKMUStmu1nWbb+WpHzkWyJFdAwR7n+uWzIWLUccuY
         DHlQRiCjtXcLYmSXTmejCiYpPo8ixwutZehqBGYpdsxrSIongVRnJUXfvnkNaDuOkLqL
         RJEVWCc2c4udd6bLGnm6E2NJQYxK/11ijV/wH82b122MPkXZNhJEKZ4qXytmIhGaKurm
         4iuPnH7rwxBfJBh7W8mv/GdNw0vsydXnC+qOSoUc46nxZe1FNH3Xo/hX6w5x+0WUoq8G
         Gt3Q==
X-Gm-Message-State: ALoCoQnttG/XkjJZfwHw0/3qfuylb/FjsM80zZETLnBln2T5lxhuAiEgTXyIXU9+6bULbHyP8FIf
X-Received: by 10.112.135.232 with SMTP id pv8mr2425148lbb.15.1390011186419;
        Fri, 17 Jan 2014 18:13:06 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.181.12.101 with SMTP id ep5ls200025wid.40.gmail; Fri, 17 Jan
 2014 18:13:05 -0800 (PST)
X-Received: by 10.14.225.195 with SMTP id z43mr5769371eep.19.1390011185199;
        Fri, 17 Jan 2014 18:13:05 -0800 (PST)
Original-Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9])
        by mx.google.com with ESMTPS id p46si23792434eem.105.2014.01.17.18.13.05
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Fri, 17 Jan 2014 18:13:05 -0800 (PST)
Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of miro@knejp.de) client-ip=212.18.0.9;
Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 3f5jNJ6KvLz4KK4F
	for <std-proposals@isocpp.org>; Sat, 18 Jan 2014 03:13:04 +0100 (CET)
Original-Received: from www.knejp.de (ppp-188-174-8-128.dynamic.mnet-online.de [188.174.8.128])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.mnet-online.de (Postfix) with SMTP id 3f5jNJ4PB4zbbh2
	for <std-proposals@isocpp.org>; Sat, 18 Jan 2014 03:13:04 +0100 (CET)
Original-Received: from [192.168.42.4] ([192.168.42.4])
	by www.knejp.de
	; Sat, 18 Jan 2014 03:13:01 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <6a95bf9c-55c9-4ae2-966f-d1b1f4df6a37@isocpp.org>
X-Original-Sender: miro@knejp.de
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 212.18.0.9 is neither permitted nor denied by best guess record
 for domain of miro@knejp.de) smtp.mail=miro@knejp.de
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:8674
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8674>

>
> - both of these methods are impossible if the presumptions stated 
> above "begin() should never return nullptr" and "we don't need a 
> special is_null()". Well, not entirely. Of course you could create 
> some bogus object and use its address instead of nullptr.
>
Why not set the string_view to "" in the default constructor?


-- 

--- 
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/.

.
