220 36551 <CAFk2RUbX0HhCcRBGFoVJAq6Y8NYDOc7+nW4yB4Z1y=7w=nhAMQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: What happened to N4282
Date: Mon, 8 Jan 2018 02:17:04 +0200
Lines: 42
Approved: news@gmane.org
Message-ID: <CAFk2RUbX0HhCcRBGFoVJAq6Y8NYDOc7+nW4yB4Z1y=7w=nhAMQ@mail.gmail.com>
References: <CANVf7NXAJ4fgPDsVPAFacHJaiHgGS0wVuUF3XcSQRNLBjkTCVA@mail.gmail.com>
 <fd278536-7104-4aa8-a0fd-bb9788e7c0aa@isocpp.org> <c82b2d47-e144-4809-b87a-f70d00d8a7e7@isocpp.org>
 <p2u66r$5uh$1@blaine.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1515370513 17349 195.159.176.226 (8 Jan 2018 00:15:13 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 8 Jan 2018 00:15:13 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBAXRZLJAKGQETPY67AY@isocpp.org Mon Jan 08 01:15:09 2018
Return-path: <std-proposals+bncBC5JHI7A7ALRBAXRZLJAKGQETPY67AY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot0-f200.google.com ([74.125.82.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBAXRZLJAKGQETPY67AY@isocpp.org>)
	id 1eYL5j-0003p2-F5
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Jan 2018 01:15:03 +0100
Original-Received: by mail-ot0-f200.google.com with SMTP id t27sf5493825otf.10
        for <gclcip-std-proposals@m.gmane.org>; Sun, 07 Jan 2018 16:17:07 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1515370626; cv=pass;
        d=google.com; s=arc-20160816;
        b=r2DozhVWNrMi/Jp89BOOSWyaUf3gHY772sdi5Sss8ceP7uUw/GZYcuQFe4BBj9aYID
         MPj9SP+WNsAlVlEukxaTjUto78UHi4zsXg0+/ZYw093zFBivom8sRBF65jBU6InXOwnA
         bSifx7Wf75wXPTvWV5wfIPks9CZ/7S4v+diegsiZZdq8O0eXRc8MZ8as2OM0WIFuqtUQ
         nJVD14udrey95Ij3zF8rFQFWSgDPDr1zE+smnob3hq5zsQNT3Kh39OxmJjrg7rIP6CDU
         tJq32qnjupQRC/EMkBnLvQAgcDQeUp2zt6XFkw2pWL2vDntXpk8bzBwldRpNV479GJdP
         cOUA==
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=jJVYagucmxyZNAefYD85IKGvpJrDpkB04vbhGMMYM8o=;
        b=0EvRDwyz4igWtpQAnZVsi4y+WsrQUJNSF2sKtRCwO/YYxTSJptamPx9Mkpaw+YvofP
         NOah4yt8YvwG7Py+3+rM8QSzrKg+wy31S2IQq5Qmw3EiyAYUvwq8q9OgRgsswWHNzhnH
         jltOBRyAoLeB3DNGvAuUUEx1XR+tti02oF0krMeOJrSqPYi3dC/wZE7yKNLSjM3QCJQ1
         0599iTl5nY8xF2dhDl4mG2w8iZNn2TGAhZN/n/dodB9MBFYR6tG0e/424PHOawT9KZF7
         YPs3gw55o2t7+JrMie8j3bC07MA53PJMFxSqkPWgAFQDMQnv++INGGGQhKJlBxa/oXNl
         xuig==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hq11ew19;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE 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: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=jJVYagucmxyZNAefYD85IKGvpJrDpkB04vbhGMMYM8o=;
        b=QVSTzhFF6vzG+bN/hosedKztdsBSGVhK94iPx67e+CEp7eUUuwvZTFe8ub0aLo4Sbb
         6vi5AaU66h0R6KofuktVnTJEfIV0Vk/O6d2RtHoiVyQkSU16zHX+QgWx+tTHfBUmKxH8
         kYSGSAxG2ogWSrT2ZrtXcb2AC6M5hIKlJsQfKGVn0XkraqiG+tzxEyX5qgn7Lx8YVpCw
         o2pxPZmnJI7P5Oet9wWzq1Js/0b3lvlPrRoQobVwatGRlBkAvhX6fR5NDkoEvCWeOg1A
         HjXI6ES6PnR4A+g1czyopa8XRRDlwKGvFfd9zWgX87iw5HGqrVXnI7BywDcNQ6nQz+jB
         /OJg==
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=jJVYagucmxyZNAefYD85IKGvpJrDpkB04vbhGMMYM8o=;
        b=AmTnZB00jUiZBCPJGA1nkp60BZylj+lOyyI9Yvsu+Fvxy7cYJiYUv7Uw1ljnShbEMp
         GfgpM3AHnuLUauDsV4i2mkiMEJoiupikWmb9EDH35UIt2ZlODHi45rdnOyovX84PzrIf
         pRi/jChKrZNkE29FvTsC67ZsRU+aVBw0ZX5psOsv1ibBpNg4ceT56ZRQ6Q7b1C07AncC
         hgImkVPv68RizRJLzzeL9XtO3LtMr2vuA0uiBHX9g3VjyV54eWykWmL924f+7TlkuwoJ
         TdsJYJwBg1r1u1iMqeQE+h53yYgLU8QB/+K4VvfMb6zfb/l9V+G8lBXI3R8vxYHchxpJ
         xQwA==
X-Gm-Message-State: AKwxytfFbtc3CBXkZU6NLlF5LWZ7Ds5FGtHJzurD38a9PrqaA13HJUsi
	IXVRsNX0facNsQqKb961YvFSJg==
X-Google-Smtp-Source: ACJfBotzPKDNJwcfvm4JiHUt/Ft8fl9qFVCUbN/6yrUtWiC/lj9HdLsk6oGih7ec0uXkz/u59MgjrA==
X-Received: by 10.157.80.22 with SMTP id a22mr5168150oth.112.1515370626696;
        Sun, 07 Jan 2018 16:17:06 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.106.213 with SMTP id f204ls2111551oic.8.gmail; Sun, 07 Jan
 2018 16:17:05 -0800 (PST)
X-Received: by 10.157.37.74 with SMTP id j10mr2440398otd.184.1515370625798;
        Sun, 07 Jan 2018 16:17:05 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1515370625; cv=none;
        d=google.com; s=arc-20160816;
        b=V5EG/lUW9xWFo6rvH0xcEq/8HLAoiWXpSBC5l8nMztvUwaHFImDCG+Eiy9QwEuzHlP
         yv/YhJQdPmU0SmIxEBFLpWzrBClsqwbV/u95OcReQ2UJUH94Tur7ok1M6QOnJqecRMk/
         YI4Qk9SUd2IkjI1CHUUqD18/tXfc2+gBiG4IftIETbH3t516546f4X+jtU7HvuUKFQzc
         lbkHGbHUtzdktRoeefy/O9MCfL6gwuVxsOet6F876Z6fBsGZeKwqp8MIxakjdR1nK5HP
         tLFuSOVT2vr862/HfvyKqu/2cNUZ0lXc5SyJpLL1hj6nr+i2ic9Y/fsqCX2Uixcn2b6O
         zREg==
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=vbVgnsYJ35nPsKtNFQnympjoU2MdHv8PVMVB/uh8qmA=;
        b=yOCwS/bhTJyHwcF+PupGiE2l4ZNmMBxJvVCfgTn0bisq0FsO2/ftvIkXtBFdOkRfHE
         9up20ML0NPkz58U3IxKWZKOmO+nJDzLDUjSsVy1Kx3CyiKxDdvy+WfhD7rVqKXh6eLxr
         Z6IVQR48z2jf+dORooXUIgAGGWQoosC1g2X0UVbWA9ul6eJjMwFYQUhLg2YGoDbgUyUm
         vQOvuS4QFwCETNOKwqEp9m6jyaBv79hlHwetQnXLl9VpAUukXSMuddGGSurWNuxc4cyZ
         k1kTDJMjkkS4HsHWJBSuKwC5jzUtpZCs75w4pOeoY8BYNIMj91tBQgTi7a5GcFddB68o
         GWoA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hq11ew19;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE 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 b191sor3619835oih.250.2018.01.07.16.17.05
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sun, 07 Jan 2018 16:17:05 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.202.104.69 with SMTP id d66mr5373068oic.200.1515370625342;
 Sun, 07 Jan 2018 16:17:05 -0800 (PST)
Original-Received: by 10.157.43.248 with HTTP; Sun, 7 Jan 2018 16:17:04 -0800 (PST)
In-Reply-To: <p2u66r$5uh$1@blaine.gmane.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=Hq11ew19;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41
 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=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-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:36551
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36551>

On 8 January 2018 at 00:17, Bo Persson <bop@gmb.dk> wrote:
>> On the other side, when using std::observer_ptr<T>, you know:
>> - that the given pointer isn't owned and that you should not try to take
>> any ownership on it.
>> - the code is not that poorly written :)
>>
>
> The trend for the C++ Core Guidelines seems to be that a raw pointer is
> non-owning (and non-array).
>
> http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-ptr
>
> And then use the compilers' static analysis to warn about doing "owning
> things" to the pointers.
>
> I think the observer_ptr, while a good idea in isolation, has lost to the
> more comprehensive guidelines.


Lost based on what? All those guidelines provide is yet another
question to ask. The current questions are
1) wtf is that pointer pointing to?
2) who owns it?
Core Guidelines add
3) does the author of this code use Core Guidelines or not?
4) are the Guidelines used everywhere, consistently?

While observer_ptr doesn't help with (1), it provides
2) certainly not you, so none of your concern
3) doesn't matter
4) doesn't matter

observer_ptr is a tool in the toolbox. There are other tools. Those
other tools aren't necessarily better just
because the Core Guidelines authors decided that raw pointers are non-owning.

-- 
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/CAFk2RUbX0HhCcRBGFoVJAq6Y8NYDOc7%2BnW4yB4Z1y%3D7w%3DnhAMQ%40mail.gmail.com.

.
