220 40756 <CAOHCbivJ++PFDnTksQHqdQPMQWmocFuyoSzOzRxkHz0Jg-Dokw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: shared_ptr and unique_ptr should both implicitly
 convert to observer_ptr
Date: Thu, 25 Oct 2018 17:06:34 -0400
Lines: 111
Approved: news@gmane.org
Message-ID: <CAOHCbivJ++PFDnTksQHqdQPMQWmocFuyoSzOzRxkHz0Jg-Dokw@mail.gmail.com>
References: <81a04b52-e5cd-4543-86c5-5a0068f9647b@isocpp.org>
 <CAOHCbiuqHGogymYhCxDGmQWVPegmZQjoOy738k9Ey6J=arCe7A@mail.gmail.com>
 <CAFk2RUZABEZobZ7aR6=iQU_yX-+m_7jhCJ4BwVMaCxDPj+cTJw@mail.gmail.com>
 <CAOHCbiv2HYLVs0s3M338aRdmGi5q-f-s3SA4jy1fLqMP0gmSmg@mail.gmail.com>
 <CAFk2RUYRmaYmc12EfaUiBHiO1_t-2z2fE7NvdnJvkcWEhCoNSg@mail.gmail.com>
 <CAOHCbivLHMKjNH8WQ9KU9Rwb=Ga=r2SZS=Mb0gGEHgExAGYtJg@mail.gmail.com>
 <a965b8a7-9b3c-45e0-9cb5-736079ca4313@isocpp.org> <CAFk2RUYcVuz2WpDoC3rFOjpBvk85R1Wt2APhBdGJ2znETywmEA@mail.gmail.com>
 <CANiq72mByDkQB3C0nfUegzYRD30T3B15HMw2_yiQvBPUH7D2+w@mail.gmail.com>
 <CAFk2RUYo3TZ-3Ngnid5ypgksLAshNXNf2GvFT-KEoHnDmCYNxg@mail.gmail.com>
 <CANiq72=0kNTCSmRZ_gGHzoi_FhWMm_LspH5-b6cuXXOES+cKQQ@mail.gmail.com>
 <CAFk2RUYXCZ14eSO3VGMxWg+7A+Wsa=1ogzqzGfL76bZWB77nfA@mail.gmail.com>
 <CANiq72n3rMda2GydaGyGkZgda8=0PfWqNEjRRMwuk-1DZiuoPA@mail.gmail.com> <CAFk2RUYdibw_0w+O0Cy49ZTBKq4ibo=pP2AocEWE_LE_zr+x4g@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000148804057913fb5c"
X-Trace: blaine.gmane.org 1540501484 28547 195.159.176.226 (25 Oct 2018 21:04:44 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 25 Oct 2018 21:04:44 +0000 (UTC)
To: Standard Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQIORYGI3YCRUBFKLR7DE@isocpp.org Thu Oct 25 23:04:39 2018
Return-path: <std-proposals+bncBCUZ5QWKNQIORYGI3YCRUBFKLR7DE@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot1-f71.google.com ([209.85.210.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIORYGI3YCRUBFKLR7DE@isocpp.org>)
	id 1gFmo3-0007Ld-Di
	for gclcip-std-proposals@m.gmane.org; Thu, 25 Oct 2018 23:04:39 +0200
Original-Received: by mail-ot1-f71.google.com with SMTP id q23sf6933172otg.9
        for <gclcip-std-proposals@m.gmane.org>; Thu, 25 Oct 2018 14:06:50 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1540501608; cv=pass;
        d=google.com; s=arc-20160816;
        b=tQRvJtS8aZSYoKTQxGBh/EiMlOO/UhuywCvHAl2TpB7u3dDr4JGy9hfupD/+mi1a8g
         Cf9BUTZ2y0ad+y6su4BhGbvtG2gBLEh25k+LxSfm1AV320wilHhqN3yAQxaBZKa5bqLh
         qiEU5MMPLW3bFFB0rGJyUr9w2escm2yi4pmAQXksRBbzyWfKRwAoX81ImlwlsjXm9kpL
         nQScz7axzw0ptRw/XLXzafgUqlrShSRnrHP8S2rde+NbNIdRR7xBMOqwX3u0Ur9rn8gL
         oMplj4bv6wN0O7R4rfGJ0PDhoyRTPQ3gBQXYEvHmiIH7K2QiDX4CL/VsckyFHw4j+hX/
         SobQ==
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:in-reply-to:references:mime-version:dkim-signature;
        bh=S8evGMh5av5/S5PxKrOn6gosBsynQS6PsfifOT+ti+c=;
        b=dHGlnIFtiKn7M1A2E0thS73taJ/Y7WpdfVZg7hB/GFwcAF42G1aV1BgIQEN8SF270p
         YBfg7n+q24hkrxSmt7vW46ga3r4hx7bwT/PHuXmJbXwyihWmzc8tFyC1/Fk606ZiyP2Q
         JG0dehZLRTcBdK2Cum0HyR81vV4ym6h+ay1sgrjtRTf2QEeBFLBrW1RpAvyrYBD/JT5l
         gnjc+Xx0dEtc8xsvIZ8/pMy4+Pf9WUapgx7RpqUFb7bVl2M5RtosN3i22bDFwkZgX3SB
         +Hjy41b8AdkfcvtVYGhnCqvcIspFJJs+Al9EWI/Qrd3b7/jTAQ/85GCzXERn47gvjG/c
         F5iw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=pVpbKPPv;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to: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=S8evGMh5av5/S5PxKrOn6gosBsynQS6PsfifOT+ti+c=;
        b=BdTXDZg0sLo833/ICQRULaY/7OYVmZPEYeNFvof1GZARMLTp7iYfKiYuUEJ618puEe
         kpWAyOO9Jm06yQMlaWZUcaChk/rK/5Ji0nqvaZtSgbhME/QSEcql6Ajqh2sVXAyPTDl1
         LkE8W7asQrniQOiViL82Sxwk+T3VD/aXEJoA22qtW1wSbJUysKpT7T5vxfrFaeqiYEVE
         D502np6zthnHcO/7HhOLUh3+bECxKdamBJCXcmCMjJqk2WuNoXcOGojsftK48z+JztbT
         22wlhWmnxFa0B9GTTPVv9wv6jOU8r4erxC61OBQRlJ10aCYRoQ1sjNjBmEI4BKkg1BPC
         D04w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to: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=S8evGMh5av5/S5PxKrOn6gosBsynQS6PsfifOT+ti+c=;
        b=EOBhC85IjuGd75wUyMygcvK3qHqK+xHBgrVb8sgnxupP2deZjQegvFo4ZGAd6ZY4dy
         ndWtrgOBfzDkXO29pjVjamTVCQ9NtMJnG6fDHvdog6ZTW/fTxvTbBBGXYPdy9AxqCk+/
         +DdEObD/HaFJW2dxxjUQVLMbDXiWEASD0ksgLaLRRnean99crEsKlMK10j2XP0PdDrKR
         iHD7zve6xj2DdwacQ0WojkmvMu7+sLUBmDuzEJuUsIB7s7y7nATIYbamwFPPbxU9+G6L
         ndCUP/cS22gdTf4jg5xND6TI/gDdoneAE2MNZZfHF/pair9U1pnzKUckX9VxBIfPCDJB
         +1Lw==
X-Gm-Message-State: AGRZ1gLRF/W6DbP3xjzn1IMwQz+zC4HsZdX/Ls/tLolaugRWJPfYY/zW
	q5RRJkstJQryjbvA69+kzF9F+w==
X-Google-Smtp-Source: AJdET5cQ5cDV/GoYnyb888XP5td8FkBoiEnaysb7NiBRfulaZ9G+JHT/R4J9IYkmgeGgPHwV5OLizQ==
X-Received: by 2002:a54:400c:: with SMTP id x12-v6mr718998oie.56.1540501608614;
        Thu, 25 Oct 2018 14:06:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a9d:bc5:: with SMTP id 63ls6535498oth.3.gmail; Thu, 25 Oct
 2018 14:06:47 -0700 (PDT)
X-Received: by 2002:a9d:3426:: with SMTP id v35mr517017otb.212.1540501607765;
        Thu, 25 Oct 2018 14:06:47 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1540501607; cv=none;
        d=google.com; s=arc-20160816;
        b=mDQMXj2vzObzcc96TQ+tIGbMg+ivmQ0pLop6136rcKKNFj2sPt+rVE4YnAk4GqLAAj
         STn/s28bu7sWw2J2QmPOi6Hhc6B8jJ3PYM3L0V+orgP5Q4ZgAPc9grMBneQ6bRtIoCA4
         NHH/mBJU0llBSiPeH4vYctJdvMxbmjP5jPOXvuJ05WgPjjY/EhbWmsKTa05mDGx1bbeG
         wi8AN2fOxU4m4lrNHWHMYiDEU6NharXdccDzCYQzkdGLYnThnF518X8O4lS/1/giP+3L
         BLqUWs0vX9i9GPVtcqWB1sxfAAmw/3WTlPjKK6rrkrLzDUXMEULmgFz5xJPumLL2ZnXM
         uUEw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature;
        bh=aPuN8d9zJT+bwrU0JWDr6xjLa8vdR0WN40YiZCgSDcU=;
        b=Q2V0LEmCQXkAvHjZT8lOfoaOO1SdkGqaqgll3m34lden34ik0DRdM1wVfY+4dOAO9n
         3iqe+sO0ZVSUg/a5+Mix85Fwab9ptAA6lFYjBuTVS5fxaMkkJ3DsU0PbhIXQxrLCsNEl
         csA1W6quJH5Yi+ys8uNgH9rgcgLpfuXA7b+TBgQI5wlLyrYo862qBTxlEp7aw9t/VZrF
         9q/z6C787mFSSFz773Y7AiGJu9H1itjO/tQFnFzhpZk2dDLHfmCxaZFh9NOuaEbhO+SA
         EXnEb6bWU02uTsG5xCNsEDtkNbE3GiOEvqeCHXknNhDELPJl4vk5ncnExGEHikcDQrhl
         LqSw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=pVpbKPPv;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id r3sor5287068otb.187.2018.10.25.14.06.47
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 25 Oct 2018 14:06:47 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a9d:3d1:: with SMTP id f75mr133215otf.325.1540501607318;
 Thu, 25 Oct 2018 14:06:47 -0700 (PDT)
In-Reply-To: <CAFk2RUYdibw_0w+O0Cy49ZTBKq4ibo=pP2AocEWE_LE_zr+x4g@mail.gmail.com>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=pVpbKPPv;       spf=pass
 (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=tvaneerd@gmail.com;       dmarc=pass (p=NONE
 sp=QUARANTINE 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-Spam-Checked-In-Group: 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:40756
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40756>

--000000000000148804057913fb5c
Content-Type: text/plain; charset="UTF-8"

On Thu, Oct 25, 2018 at 4:59 PM Ville Voutilainen <
ville.voutilainen@gmail.com> wrote:

> On Thu, 25 Oct 2018 at 23:31, Miguel Ojeda
> <miguel.ojeda.sandonis@gmail.com> wrote:
>
> > Even if it was true I gave "zero evidence" (which it isn't), that
> > doesn't mean I am being rude. However, you are being rude by stating
> > publicly "you are wrong; feel free to try again", as if I had to prove
> > something. No, sorry, the one making the proposal is you, so *you* are
> > the one that has to prove its validity.
>
> Let's repeat, then:
>
> An optional<T&> doesn't do what observer_ptr<T> does. The latter can
> give you a null pointer when you ask its pointer value, so it can
> model
> "yes, I have a pointer, but it doesn't point to anything". The former
> models "I may or may not have anything".
>
> I can always get the pointer value from an observer_ptr. I can't get a
> value from an optional<T&> when it has none.
>
> Furthermore,
> 1) I am not making a proposal.
> 2) If I were, I wouldn't waste my time explaining it here.
>
>
Also, a container of observer_ptrs would sort by the pointer value (ie
address).
I'm not sure how optional<T&> would sort, and if it would be sortable at
all.


-- 
Be seeing you,
Tony

-- 
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/CAOHCbivJ%2B%2BPFDnTksQHqdQPMQWmocFuyoSzOzRxkHz0Jg-Dokw%40mail.gmail.com.

--000000000000148804057913fb5c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu=
, Oct 25, 2018 at 4:59 PM Ville Voutilainen &lt;<a href=3D"mailto:ville.vou=
tilainen@gmail.com">ville.voutilainen@gmail.com</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex">On Thu, 25 Oct 2018 at 23:31, Miguel Ojeda<br>
&lt;<a href=3D"mailto:miguel.ojeda.sandonis@gmail.com" target=3D"_blank">mi=
guel.ojeda.sandonis@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Even if it was true I gave &quot;zero evidence&quot; (which it isn&#39=
;t), that<br>
&gt; doesn&#39;t mean I am being rude. However, you are being rude by stati=
ng<br>
&gt; publicly &quot;you are wrong; feel free to try again&quot;, as if I ha=
d to prove<br>
&gt; something. No, sorry, the one making the proposal is you, so *you* are=
<br>
&gt; the one that has to prove its validity.<br>
<br>
Let&#39;s repeat, then:<br>
<br>
An optional&lt;T&amp;&gt; doesn&#39;t do what observer_ptr&lt;T&gt; does. T=
he latter can<br>
give you a null pointer when you ask its pointer value, so it can<br>
model<br>
&quot;yes, I have a pointer, but it doesn&#39;t point to anything&quot;. Th=
e former<br>
models &quot;I may or may not have anything&quot;.<br>
<br>
I can always get the pointer value from an observer_ptr. I can&#39;t get a<=
br>
value from an optional&lt;T&amp;&gt; when it has none.<br>
<br>
Furthermore,<br>
1) I am not making a proposal.<br>
2) If I were, I wouldn&#39;t waste my time explaining it here.<br>
<br></blockquote><div><br></div><div>Also, a container of observer_ptrs wou=
ld sort by the pointer value (ie address).</div><div>I&#39;m not sure how o=
ptional&lt;T&amp;&gt; would sort, and if it would be sortable at all.<br></=
div><br clear=3D"all"></div><br>-- <br><div dir=3D"ltr" class=3D"gmail_sign=
ature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Be seeing y=
ou,<br></div>Tony<br></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/CAOHCbivJ%2B%2BPFDnTksQHqdQPMQWmocFuy=
oSzOzRxkHz0Jg-Dokw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOHCbivJ%2B%=
2BPFDnTksQHqdQPMQWmocFuyoSzOzRxkHz0Jg-Dokw%40mail.gmail.com</a>.<br />

--000000000000148804057913fb5c--

.
