220 16004 <CAFk2RUa70vkw8df7WKpuw1-uiKZorFo7S_fkLWHx87i2YVqK8A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: RFC: Adding Coherency Between any and optional<T>
Date: Tue, 3 Feb 2015 22:15:01 +0200
Lines: 28
Approved: news@gmane.org
Message-ID: <CAFk2RUa70vkw8df7WKpuw1-uiKZorFo7S_fkLWHx87i2YVqK8A@mail.gmail.com>
References: <54C36998.3070600@wanadoo.fr>
	<54C7E3EE.8040505@gmail.com>
	<CAGg_6+OW6PTw0-c4ONgqZ1TRf107nSpznDX0KmuKpC2MwVUKbg@mail.gmail.com>
	<1472973.FUI34FhZ9i@tjmaciei-mobl4>
	<CAOHCbivtHZW+OM4sofSVOgEZjugExAsS++7PuA=-n2j4gXzPNg@mail.gmail.com>
	<madr8o$8ag$1@ger.gmane.org>
	<CAOHCbivOjm1sdO+h8FN_o92YuNWoq5PYTZFETU60h0z77WEstQ@mail.gmail.com>
	<d5b302ef-f63d-4a18-bd2a-aaa47498d8e1@isocpp.org>
	<CAOHCbivKFpzW7dEA7DXaORwvPJC=bjMjU7eOxZEc_pcpThgdag@mail.gmail.com>
	<ef149f33-8576-43a3-bce1-72a4db1fe669@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
X-Trace: ger.gmane.org 1422994505 23522 80.91.229.3 (3 Feb 2015 20:15:05 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 3 Feb 2015 20:15:05 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBRWYYSTAKGQEU2QTDFA@isocpp.org Tue Feb 03 21:15:05 2015
Return-path: <std-proposals+bncBC5JHI7A7ALRBRWYYSTAKGQEU2QTDFA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f200.google.com ([209.85.223.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBRWYYSTAKGQEU2QTDFA@isocpp.org>)
	id 1YIjsF-0003eE-Oj
	for gclcip-std-proposals@m.gmane.org; Tue, 03 Feb 2015 21:15:03 +0100
Original-Received: by mail-ie0-f200.google.com with SMTP id rd18sf465112116iec.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 03 Feb 2015 12:15:03 -0800 (PST)
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:date
         :message-id:subject:from:to:content-type:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=2mOHw6FjOUQbepzDht8ODUR78ly9AbCy98xOolwrOgM=;
        b=i2f/B54UC44fZVi0vkXQ8nYWupa/K/s0CmBIr5rlhYeBcpYNiiwzvNltiRYpeaSpgh
         ql7iVKKVyUrSxspHTTTzvNZ4E9ShGNwAogHhxXOa5TXgT+H5GdYSMcttd6KUspXqp3CE
         KUxqR2S+7RaiZnRnAR6520mrhfNpW4Z0UWgzyhLJADdjn2YzLegoo7ojg66l+lzS/7nO
         I6o07vrRw47Dzn21dAmV7nVYSiVn5CQuLiTL80HsA9ChdgyBAgRY8fyziAzGnjnQ1at0
         P47Sf1F8yR1baj9g1jVPHle0uUKnGJda0Jgqco8or7ks32lmEppDwKWKrOeoliyXehxJ
         KlKg==
X-Gm-Message-State: ALoCoQk8KTeFIYuq+uhn36mlnudWYW7dDbX+0S9u8Lb1wkxoqKb0fi/yxmYSVtQl9A2SHxb+MstK
X-Received: by 10.42.112.129 with SMTP id y1mr4956214icp.13.1422994502947;
        Tue, 03 Feb 2015 12:15:02 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.26.208 with SMTP id a199ls423945ioa.105.gmail; Tue, 03 Feb
 2015 12:15:02 -0800 (PST)
X-Received: by 10.107.152.137 with SMTP id a131mr32069067ioe.14.1422994502184;
        Tue, 03 Feb 2015 12:15:02 -0800 (PST)
Original-Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com. [2607:f8b0:4001:c05::229])
        by mx.google.com with ESMTPS id j2si10464794igv.52.2015.02.03.12.15.02
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 03 Feb 2015 12:15:02 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c05::229 as permitted sender) client-ip=2607:f8b0:4001:c05::229;
Original-Received: by mail-ig0-f169.google.com with SMTP id hl2so27002252igb.0
        for <std-proposals@isocpp.org>; Tue, 03 Feb 2015 12:15:01 -0800 (PST)
X-Received: by 10.107.137.150 with SMTP id t22mr15347241ioi.78.1422994501607;
 Tue, 03 Feb 2015 12:15:01 -0800 (PST)
Original-Received: by 10.36.0.4 with HTTP; Tue, 3 Feb 2015 12:15:01 -0800 (PST)
In-Reply-To: <ef149f33-8576-43a3-bce1-72a4db1fe669@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c05::229 as
 permitted sender) smtp.mail=ville.voutilainen@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:16004
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/16004>

On 3 February 2015 at 22:10, Nicol Bolas <jmckesson@gmail.com> wrote:
>> But you are OK with having the above problems with std::optional<std::any>
>> for example? (assuming 'any' has 'none' support)?
> It is a sticky issue: to have std::any which could store any value, and then
> wrap it in something who's comparison to a certain value has a special
> meaning.

That works just fine today.

> My suggested means of resolving that problem is to make it so that std::any
> cannot store a std::none object. After all, objects of std::none has no
> values. So its highly unlikely that any user would need to store one inside
> a std::any. And if they did, they could simply use a conditional switch or
> something.
>
> Similarly, optional<std::none> should be outlawed.

So, what does assigning none to an optional<any> mean? What is it assigning
to?

-- 

--- 
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/.

.
