220 28932 <8a6731f7-1c9b-482d-817e-c2374fc9ae1b@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: mihailnajdenov@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Is World's Dumbest Pointer still on the table?!?
Date: Tue, 18 Oct 2016 03:03:53 -0700 (PDT)
Lines: 73
Approved: news@gmane.org
Message-ID: <8a6731f7-1c9b-482d-817e-c2374fc9ae1b@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_238_560385694.1476785033287"
X-Trace: blaine.gmane.org 1476785058 18346 195.159.176.226 (18 Oct 2016 10:04:18 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 18 Oct 2016 10:04:18 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUJ3A7GRAPRBCXHS7AAKGQECUNTA5I@isocpp.org Tue Oct 18 12:04:10 2016
Return-path: <std-proposals+bncBCUJ3A7GRAPRBCXHS7AAKGQECUNTA5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f200.google.com ([209.85.161.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUJ3A7GRAPRBCXHS7AAKGQECUNTA5I@isocpp.org>)
	id 1bwRFR-0001lE-PB
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Oct 2016 12:03:53 +0200
Original-Received: by mail-yw0-f200.google.com with SMTP id u124sf347484425ywg.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 18 Oct 2016 03:03:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=cK5O6WblTXjy0gBs2TtBdaH4ZSv8PUfqtc3ZZf7iEWg=;
        b=bdR3G9y/ZaeB3gzOz4wXURAhis0CIa/Bko7Kh39P7xWB1JEbjy/hu0QOmHyxSJiWYr
         5pcih4o0g5eobd1odE6J1T/WXYp29MKHMO1SuboZPzy4UhllfGRxY9IR/ga3vu4UDeWa
         PdGv5h+sPz5EYzjwpn2rm/mWp+ujxODqmCOSM/B6/pbruqF4iGB1P5MtEJqlDyem60oa
         VNxcKKZMHINvS9FHoORSbHI+KVJLgmdN24eK2J9OqMvkCWNa1ISVYPGgrT5SH/rgJt6b
         XKGaOUkSjqnMYhdxADcjXarcvuhzIRRO5AL4K+lqZ4pe/povpDG+oOxjviz5tmhofqnX
         xgiw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=cK5O6WblTXjy0gBs2TtBdaH4ZSv8PUfqtc3ZZf7iEWg=;
        b=Nb0OY2p2YESIy+bQV054a4RQ/wFO9iFCpPNhI7MEmW45qkw6iHAozdSoJLtvJfBXTH
         LqmoS+SRnFi+GYeg+in7qmn9GgmfchFso68Iz72L3xs05nQJqIm1EpYbAlP8BemK9pqy
         3uexPfkfzNISQRPThEmHuoinikyU/UoxUWJe/XKAHiDvIP6XX4RfF7E8v6gTcaP+h2w3
         W6sd/NJPMco5dnHrO+gyXiv3B3Xnspr8u/7W9at3Qyy3HAUv9hZ0CjgwZMv3VnyPjx36
         qsumCX4BbSdS97y5gdgQa/puaYd4K+FnNmbeiz4JZkQIq8ZchQZaw1EApDoOrxYhWT1B
         NjSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=cK5O6WblTXjy0gBs2TtBdaH4ZSv8PUfqtc3ZZf7iEWg=;
        b=PGGweLDioB/Xh0J6P8ki076/piDJps5YDVgRpLlrxkY+wG7oCi+XwmUIMsBEW2IDfj
         bM/VKdZLNwcFKGNMYQxBAMollMYvJq9JK2KjEcu+0df2IOkYoV1Xcn3mUFSVuUJogkmC
         l5NFJ9MaWbf2HIwGSVG7S0uaHZ26PoV7/XYm82zjkZM9VlcEBg/OJKNPQ1aTeTRdAoIA
         cDy5G/ya3JNW8XVK8yqXwmCN8DroSdkfk3LiHZ9o27xDbo940QqrzacTeK1ZKTD32I7A
         ukL4CDSrd1yl87PZ/PfBnbGssnWyCuNA8qDpTUxM6W0wkGIvrM+J9/hW66mqmuT3lrjz
         fq2w==
X-Gm-Message-State: AA6/9RlMgTX12/Q0aA/+Gktcxo+gaA4aUQv8Gzd0BliVzRRpshG87L64OY91jkh0Ex2ymQ==
X-Received: by 10.129.52.204 with SMTP id b195mr549473ywa.110.1476785035654;
        Tue, 18 Oct 2016 03:03:55 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.18.85 with SMTP id a82ls5393940ioj.7.gmail; Tue, 18 Oct
 2016 03:03:54 -0700 (PDT)
X-Received: by 10.36.225.205 with SMTP id n196mr10176ith.0.1476785034627;
        Tue, 18 Oct 2016 03:03:54 -0700 (PDT)
X-Original-Sender: MihailNajdenov@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: <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:28932
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28932>

------=_Part_238_560385694.1476785033287
Content-Type: multipart/alternative; 
	boundary="----=_Part_239_1005529967.1476785033287"

------=_Part_239_1005529967.1476785033287
Content-Type: text/plain; charset=UTF-8

I was surprised to see 
http://en.cppreference.com/w/cpp/experimental/observer_ptr 

I though, it was settled, raw pointers will be serving as non-owning 
pointers? (and use references, as well not_null<> and owner<> to cover 
corner cases and legacy)

Also, observer_ptr is not without problems too.

For instance, it has lifetime management API (reset, release) although it 
does not manage lifetime!

Right now if you see reset or release in code, it means the object lifetime 
has been altered - either deleted, a ref dropped or no longer managed.
observer_ptr will change that for the worse - these will start to mean 
something different.
 
Also, it can be well misleading, it monitors object lifetime - after all 
other smart pointers *control *lifetime, this one is probably just 
*observing* it.

-- 
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/8a6731f7-1c9b-482d-817e-c2374fc9ae1b%40isocpp.org.

------=_Part_239_1005529967.1476785033287
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I was surprised to see http://en.cppreference.com/w/c=
pp/experimental/observer_ptr </div><div><br></div><div>I though, it was set=
tled, raw pointers will be serving as non-owning pointers? (and use referen=
ces, as well not_null&lt;&gt; and=C2=A0owner&lt;&gt; to cover corner cases =
and legacy)<br></div><div><br></div><div>Also, observer_ptr is not without =
problems too.</div><div><br></div><div>For instance, it has lifetime manage=
ment API (reset, release) although it does not manage lifetime!</div><div><=
br></div><div>Right now if you=C2=A0see reset or release in=C2=A0code, it m=
eans the object lifetime has been altered - either deleted, a ref dropped o=
r no longer managed.</div><div>observer_ptr will change that for the worse =
- these will start to mean something different.</div><div>=C2=A0</div><div>=
Also,=C2=A0it can be well misleading, it monitors object lifetime - after a=
ll other smart pointers <i>control </i>lifetime, this one is probably just =
<i>observing</i> it.<br></div><div><br></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/8a6731f7-1c9b-482d-817e-c2374fc9ae1b%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/8a6731f7-1c9b-482d-817e-c2374fc9ae1b=
%40isocpp.org</a>.<br />

------=_Part_239_1005529967.1476785033287--

------=_Part_238_560385694.1476785033287--

.
