220 2305 <123b9f65-12fd-4285-bb6c-cfee383d4552@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: optional<T>, one more value or two states
Date: Sat, 26 Jan 2013 10:01:33 -0800 (PST)
Lines: 56
Approved: news@gmane.org
Message-ID: <123b9f65-12fd-4285-bb6c-cfee383d4552@isocpp.org>
References: <CAGsORuC1ADLXgS9AZZiTo=knmhT-+9Yj+82v+b8Nq_WJpb1fOg@mail.gmail.com>
 <CAFk2RUZyZA0LLUNuVNcnibv+qBF69jMytWQL3tkp-Kp21oEU+A@mail.gmail.com>
 <CAGsORuB-Qkx-LaXj2jO4yLrwN524kiJONSg7oczkQZHYaJ6ASg@mail.gmail.com>
 <d360a952-28ae-4d57-bb20-96fd08725a0b@isocpp.org>
 <CAPXezF_JggyMaXjGS9r1EAGVu1NhQBEyGEXB8tKmVqgFfjoCeg@mail.gmail.com>
 <CALJmx62zJd_tZ=XYL7TaSkRN6432SObwH9YS87eLX-h_pMuFYQ@mail.gmail.com>
 <CAOHCbivAK0ypmMhrhJ3zKpF8BHu3h_rUNzeao-HnibJkC-qqGw@mail.gmail.com>
 <ef15483d-5665-4da3-9b79-aefd3c725e1b@isocpp.org>
 <CAOHCbithEUfm+w_06V71=hpkqGUJvqiyDFqD7fesfgLy4uUieg@mail.gmail.com>
 <2c2b9360-8e5e-422d-9b85-124bd947b004@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_959_7897526.1359223293547"
X-Trace: ger.gmane.org 1359223299 21864 80.91.229.3 (26 Jan 2013 18:01:39 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 26 Jan 2013 18:01:39 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBB75TSCEAKGQEF7PZPRA@isocpp.org Sat Jan 26 19:01:58 2013
Return-path: <std-proposals+bncBC5NB45SSABBB75TSCEAKGQEF7PZPRA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vb0-f72.google.com ([209.85.212.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBB75TSCEAKGQEF7PZPRA@isocpp.org>)
	id 1TzA4f-0002M9-CG
	for gclcip-std-proposals@m.gmane.org; Sat, 26 Jan 2013 19:01:53 +0100
Original-Received: by mail-vb0-f72.google.com with SMTP id ft2sf1953776vbb.7
        for <gclcip-std-proposals@m.gmane.org>; Sat, 26 Jan 2013 10:01:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:date:from:to:message-id
         :in-reply-to:references:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=GB6a1J9L+m2VltGknMrSDpiBr8k/BOuCq5/5Z+mNtEM=;
        b=UMKUJyBvhcQ0W4WiMKP1vbf2hfRoN1KKH/RvNcGDclUjBBHw7/OEZSprNo8IOn9ff9
         lNY8qiZWMAixIQ3xd3KW7sh26XPvKNpguOTc7WoZZIe4Ho7OKJnrTaw/c4DuJYU9q7kD
         JvHWa+SxaATu0Juu2hGb/c1XkxJUncHrbH9zPeKwDxD3eNh1ivjCgmtxwiZ4V5tEW9w0
         4FFCnvDrUNtIFGKEKJ6aOi5F0I/g1oNr+R/rYtKPi1UrPavrSlsNQ2bl5uGAI4SPmYBx
         IEVW3VhgLviuZD9KN2Yx8ZgIuJgI5zL/Xhb5nUrD8BDQYpuxhsgSVfbMJgsCtMBlU2e8
         OB+Q==
X-Received: by 10.224.175.65 with SMTP id w1mr4876381qaz.7.1359223295296;
        Sat, 26 Jan 2013 10:01:35 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.87.227 with SMTP id bb3ls633997qeb.3.gmail; Sat, 26 Jan
 2013 10:01:33 -0800 (PST)
X-Received: by 10.49.58.140 with SMTP id r12mr1840809qeq.35.1359223293800;
        Sat, 26 Jan 2013 10:01:33 -0800 (PST)
In-Reply-To: <2c2b9360-8e5e-422d-9b85-124bd947b004@isocpp.org>
X-Original-Sender: olafvdspek@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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:2305
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2305>

------=_Part_959_7897526.1359223293547
Content-Type: text/plain; charset=ISO-8859-1

Op vrijdag 25 januari 2013 21:20:36 UTC+1 schreef Nicol Bolas het volgende:

> And can be NULL.
>
> No, it can be *empty*, not NULL. `optional` is a container.
>

Is it?
The C++ container concept has a lot of requirements that optional doesn't 
meet.
 I think using operator* is natural.

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To post to this group, send email to std-proposals@isocpp.org.
To unsubscribe from this group, send email to std-proposals+unsubscribe@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



------=_Part_959_7897526.1359223293547
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<span style=3D"font-size: 13px;">Op vrijdag 25 januari 2013 21:20:36 UTC+1 =
schreef Nicol Bolas het volgende:</span><br><blockquote class=3D"gmail_quot=
e" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;paddin=
g-left: 1ex;"><span style=3D"font-size: 13px;">And can be NULL.</span><br><=
div><br>No, it can be <i>empty</i>, not NULL. `optional` is a container.</d=
iv></blockquote><div><br></div><div>Is it?</div><div>The C++ container conc=
ept has a lot of requirements that optional doesn't meet.</div><div>&nbsp;I=
 think using operator* is natural.</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 post to this group, send email to std-proposals@isocpp.org.<br />
To unsubscribe from this group, send email to std-proposals+unsubscribe@iso=
cpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_959_7897526.1359223293547--

.
