220 33124 <CANh8DEkc-u4-60q121uG7moPVHBuAcQJTjpM2Bo9kXx=xn4KYQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "'Matt Calabrese' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::optional - support for sentinel values
Date: Wed, 5 Jul 2017 10:24:24 -0400
Lines: 70
Approved: news@gmane.org
Message-ID: <CANh8DEkc-u4-60q121uG7moPVHBuAcQJTjpM2Bo9kXx=xn4KYQ@mail.gmail.com>
References: <6e23864f-827a-4bdb-89de-a60d8f5be993@isocpp.org> <c44c5d09-9124-488f-aa92-f9ab59797268@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="94eb2c049632d2168f055392c11c"
X-Trace: blaine.gmane.org 1499264670 11307 195.159.176.226 (5 Jul 2017 14:24:30 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 5 Jul 2017 14:24:30 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCGNLO5F34OBBGXN6PFAKGQEN6UJDKI@isocpp.org Wed Jul 05 16:24:25 2017
Return-path: <std-proposals+bncBCGNLO5F34OBBGXN6PFAKGQEN6UJDKI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f198.google.com ([209.85.217.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCGNLO5F34OBBGXN6PFAKGQEN6UJDKI@isocpp.org>)
	id 1dSlE6-0002Xh-Kq
	for gclcip-std-proposals@m.gmane.org; Wed, 05 Jul 2017 16:24:22 +0200
Original-Received: by mail-ua0-f198.google.com with SMTP id w19sf94357944uac.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 05 Jul 2017 07:24:28 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1499264667; cv=pass;
        d=google.com; s=arc-20160816;
        b=gD0QSIJgAJMZiUN8wpsNIWtFgiz8HP1p8L7GGjB3IALuDYtRTa1A3wIgeaI4bUEEZ3
         xrN3HjXgcBKRZ6w5vG7MK6Z18A8SNESe8634aVGdpf/Ub9gliIxe00z56++01jVS7m2+
         UXem2OKlw9vhylLCsh3MmRhnqN+VfdfRhS5mZdWvJxAvvxHjNadTus5GXGUDFkh1fG1r
         o8E6rHjlKZwS9Ai1E5KjZaVmaEncRLaqzqKJZOrZlqzCbqpr1HpA+YEaa9y7gfmxS38A
         CDavsXWb9VkL0haZ1BPkJpMHK4xyg3F9k4jxIkW8bFmxmy/UQSLOB0qDftnXQSPZg5z4
         d/hg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=um5vw/RiRNa3e/lWpjlJLmwwuzNvr/Jqv1sPNPlpvZg=;
        b=HByrJbeylxmMb1xLk7VT3nVjr20/z5uc+YCTU20h7ePxNUnQgDc2sp6CCBqJsJT0fJ
         Vz2aAU/AdCXYx1o2/06vX/NSm4VkdOwXUjPqCNQ5gU57+pOH2RNKW+XGuBaY75u/tYdQ
         hJrxLDjp1uoNuaA/z2kJggl+BDFc2bsB74hd81h7QbGLEJRVd8Uzbo+2eVtMla5NOyqc
         BHbJELz+eyC60V/eWVjirqnaRqYkp6MLabC3dh0Z+ZIOv5iZMqeppR3wx0IzISq6p2lT
         q5QB0YhHzi5Ypot5isLf4R4T71SrQXa/J0DCkiXYsQjMsVhJ+RCQPDQPNvg+3b1+YnU0
         U7ng==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@google.com header.b=AJIJRXT5;
       spf=pass (google.com: domain of calabrese@google.com designates 2607:f8b0:4001:c0b::22a as permitted sender) smtp.mailfrom=calabrese@google.com;
       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        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;
        bh=um5vw/RiRNa3e/lWpjlJLmwwuzNvr/Jqv1sPNPlpvZg=;
        b=EBEeYC8r1Sy8EK2+89UnVuUtlIWGSiHhGNYula2KlNQIljGwmurz0mHPsdaW7Bk/A+
         bSYABbBopt5EUtXkD59LA9jKcrXBupHtXiPMuhQ4YWfJfq575bTra+bIUoW0HNqNZ0UF
         lXYKsK8q/x46HzZBthMJDAx2Tw5pCqO8s4ZhMVd+VROmcOsB8l1rBm6jRjwN6yA8eRUK
         zijVB3deneZ4D4wCvsPX53bqeYCCH9yWlI34OMypgs7rSRQaacYDnrI8Re/TOag3JWOA
         rDqCQ0x5XXRIeFpqW5OVp7WzAfFg7Aby7FK93hWxnXBSCyN8njTScf25ABZVEkipwqGh
         wn5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        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:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=um5vw/RiRNa3e/lWpjlJLmwwuzNvr/Jqv1sPNPlpvZg=;
        b=AVpkYEf7a4C2nzZD6Y74qSfqSpCoemiJGTrcDglWaYGvn5HjEm37zI2jvKh6tbFGRh
         jlSgqyN9rFTKZxMJd44TTG9EjQ6KINsx0BOUYUFWoakW3cIb8k5A86g+fmR7XQbhEzEk
         ouKe7kKL7vP3zrHozFmNwKh+2qqwpXnROyklzNHMh/NivK8JounND8ibLKAE2SNTbuHb
         vdAbboV6zhbXNRjSKzmn+9zMw3Gpi2FVb3e56qra2JARhvvry0jJ14BJC1cGHejhGh4t
         anmmwWIFlp7evXPxsoiNsHCgXaTupdg02K7WqpEZ6sV7/t+vlsy8aePCzsM/AXBBILZ7
         +S9g==
X-Gm-Message-State: AKS2vOxG2H2V0vHnvkgmOc+DOV8etscDaESQfOfP2iSIkw9fou67ON7J
	8+j/scbleCfNUA==
X-Received: by 10.159.51.223 with SMTP id y31mr26869493uab.1.1499264667781;
        Wed, 05 Jul 2017 07:24:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.138.200 with SMTP id c69ls9189321ioj.23.gmail; Wed, 05 Jul
 2017 07:24:26 -0700 (PDT)
X-Received: by 10.36.131.75 with SMTP id d72mr42088961ite.37.1499264666262;
        Wed, 05 Jul 2017 07:24:26 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1499264666; cv=none;
        d=google.com; s=arc-20160816;
        b=tqXkdDr2clVOKYI8SaMISbQUJayRrlN3tx44nDWyG3yDijg/k6s7uLsmChl2z89+kt
         Uva9cSSBNJZqc6NATo4MJRXTDYVhNpEYM8/RT77/M0hIV8rGThL21UYojVBNRnT25mTy
         MRd4t7aBuyJbAbj/ri9BXxRoINOkQM5qZA9JTWpbVBMVzn2lugcu9us8+MSdogOA1ppW
         CabRxYHBnN3VSAha1bbqdjULYC8eZQehWukvb4FQrIBez/DmxQlG/HXO8FGirEkTG649
         Uk5yKEslC5QWYkdaeBBQYXVONUJkxYjEDFu+K6bEjuoxwhKkuEd8XzSKeLpEzoFqSTmB
         AOHg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=RLMuiSmIU4SK5uZTqdo0AfGn/1AeoORvMoMTke98ynA=;
        b=oaSH1RK9pFurQ/ltVPtVYZlIO7d9DzII+kVXX4Lqn+27SNVYjPmviAYM0AjTeEeKtD
         26rilDDSxi/4gAeNSqYMOORcaGUM5rIPQDWkdcGLt5K15w2Qfcyv8rmqtrRrSs64C3Rg
         S+oTTtcOt45MCG0cPdLIhg1MFMymQ6gdG8Nfg8nS+tgSeLYW1Z4D6QcF37nnsUJg9IrR
         E6WUzPA41uGBAEtKnD0azlS+YEtEQ3aCfXNCT+FuuKwjnh3ZR/gSf80XqdhE3Yy6O47y
         yqZJZUSvXBq6zmGsVxhb+/UyZsdtIaLaGGZ/65xseKOzimX5zvPMGuAwaMeARo1JMgwv
         Pcdg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@google.com header.b=AJIJRXT5;
       spf=pass (google.com: domain of calabrese@google.com designates 2607:f8b0:4001:c0b::22a as permitted sender) smtp.mailfrom=calabrese@google.com;
       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com
Original-Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com. [2607:f8b0:4001:c0b::22a])
        by mx.google.com with ESMTPS id n26si20736215ioe.134.2017.07.05.07.24.26
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 05 Jul 2017 07:24:26 -0700 (PDT)
Received-SPF: pass (google.com: domain of calabrese@google.com designates 2607:f8b0:4001:c0b::22a as permitted sender) client-ip=2607:f8b0:4001:c0b::22a;
Original-Received: by mail-it0-x22a.google.com with SMTP id k192so86927889ith.1
        for <std-proposals@isocpp.org>; Wed, 05 Jul 2017 07:24:26 -0700 (PDT)
X-Received: by 10.36.160.8 with SMTP id o8mr40211985ite.10.1499264665633; Wed,
 05 Jul 2017 07:24:25 -0700 (PDT)
Original-Received: by 10.107.3.18 with HTTP; Wed, 5 Jul 2017 07:24:24 -0700 (PDT)
In-Reply-To: <c44c5d09-9124-488f-aa92-f9ab59797268@isocpp.org>
X-Original-Sender: calabrese@google.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@google.com header.b=AJIJRXT5;       spf=pass (google.com: domain of
 calabrese@google.com designates 2607:f8b0:4001:c0b::22a as permitted sender)
 smtp.mailfrom=calabrese@google.com;       dmarc=pass (p=REJECT sp=REJECT
 dis=NONE) header.from=google.com
X-Original-From: Matt Calabrese <calabrese@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:33124
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33124>

--94eb2c049632d2168f055392c11c
Content-Type: text/plain; charset="UTF-8"

On Thu, Jun 29, 2017 at 7:05 PM, Arthur O'Dwyer <arthur.j.odwyer@gmail.com>
wrote:

> The other extension, orthogonal to first one, is to allow value to be
>> stored using alternate representation. As an example, reference type can be
>> stored as a pointer and simply presented as reference. This will also allow
>> to have cheap and relatively easy support for storing references in
>> std::optional, without need of completely separate type specialization.
>>
>
> This is optional<reference_wrapper<T>>.
> As for why optional<T&> is a terrible, horrible, no-good, very bad idea,
> please see Matt Calabrese's talk
> <https://www.youtube.com/watch?v=hKIYbf1fsLw> from C++Now.
>

Erm, that's not what I said in my talk. In fact, quite the opposite. I
advocate support for optional<T&>

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CANh8DEkc-u4-60q121uG7moPVHBuAcQJTjpM2Bo9kXx%3Dxn4KYQ%40mail.gmail.com.

--94eb2c049632d2168f055392c11c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Jun 29, 2017 at 7:05 PM, Arthur O&#39;Dwyer <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:arthur.j.odwyer@gmail.com" target=3D"_blank">arthur.j.odwyer@g=
mail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><span class=3D""><blockquote class=3D"gmail_quote" style=3D"margin=
:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><p>The other extension, orthogonal to first one, is to allow value=
 to be stored using alternate representation. As an example, reference type=
 can be stored as a pointer and simply presented as reference. This will al=
so allow to have cheap and relatively easy support for storing references i=
n std::optional, without need of completely separate type specialization.<b=
r></p></div></blockquote><div><br></div></span><div>This is optional&lt;ref=
erence_wrapper&lt;T&gt;&gt;<wbr>.</div><div>As for why optional&lt;T&amp;&g=
t; is a terrible, horrible, no-good, very bad idea, please see <a href=3D"h=
ttps://www.youtube.com/watch?v=3DhKIYbf1fsLw" target=3D"_blank">Matt Calabr=
ese&#39;s talk</a> from C++Now.</div></div></blockquote><div><br></div><div=
>Erm, that&#39;s not what I said in my talk. In fact, quite the opposite. I=
 advocate support for optional&lt;T&amp;&gt;=C2=A0</div></div></div></div>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CANh8DEkc-u4-60q121uG7moPVHBuAcQJTjpM=
2Bo9kXx%3Dxn4KYQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CANh8DEkc-u4-60=
q121uG7moPVHBuAcQJTjpM2Bo9kXx%3Dxn4KYQ%40mail.gmail.com</a>.<br />

--94eb2c049632d2168f055392c11c--

.
