220 28933 <CAFk2RUaKZCx2LvRcHWxff6Y_w0Jd0nwkagwLHc9aFQh9oxnxOw@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: Is World's Dumbest Pointer still on the table?!?
Date: Tue, 18 Oct 2016 14:53:55 +0300
Lines: 33
Approved: news@gmane.org
Message-ID: <CAFk2RUaKZCx2LvRcHWxff6Y_w0Jd0nwkagwLHc9aFQh9oxnxOw@mail.gmail.com>
References: <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: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1476791665 31580 195.159.176.226 (18 Oct 2016 11:54:25 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 18 Oct 2016 11:54:25 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBVE2TDAAKGQE2QCL4OI@isocpp.org Tue Oct 18 13:54:13 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBVE2TDAAKGQE2QCL4OI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f199.google.com ([209.85.223.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBVE2TDAAKGQE2QCL4OI@isocpp.org>)
	id 1bwSxw-0004kB-Jd
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Oct 2016 13:53:56 +0200
Original-Received: by mail-io0-f199.google.com with SMTP id 64sf238649459ior.6
        for <gclcip-std-proposals@m.gmane.org>; Tue, 18 Oct 2016 04:53:59 -0700 (PDT)
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:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=l3oUWvjPQtETncFtvuJ4uILXUulq4KwHkcD0jcVcSQ0=;
        b=YnmPC+uqKJumdBnwqus2nDdy9RVjvxDWk27WGDZg3V6E6VAr1rq/N3h8/zqC156z19
         t7GJ+TpTofWUgog3R5E3ReqYfDc1k2uNNjM7nZ9FDhXLMeomgavBf7n54w477ALTl/NV
         RpxyECdA0GMT+srPy1PdR9wi5hNLi4V5vhiG8ZLHbsks+ilTXwcKA/zoxRgwSBS4UXbz
         zlGYAIn91/jVTqrEWYifjFNPPDgdQBxDzwFRsAzdrt8ZnHifxGmcldhEO81i1GTJEerc
         mip1K66P4/E8gW3pjHqA8/hBClTuwiDxUXO/M+Gp+hAZI2j72Om/TiEUQZfLXbudnkNc
         AQ3A==
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: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=l3oUWvjPQtETncFtvuJ4uILXUulq4KwHkcD0jcVcSQ0=;
        b=eO7Pqsu3t+3E/rfqMcM4AOcRwnaobUg4lK1RHzHYPbQBaGDZOdWd2keAj7JV8x8yWg
         q9l7SVomw8BzDF/fp1UbSwf2L3njcF1sHuasQ0odRGMo0j5hVLmx+30XW6TVZI4YQjX9
         LjRbieKHuG+O6EANt+mTMFOUtQc9Eoe3XDDa7DgqcyEUysTZpmLKpMzt/EhuK3N55n35
         KKbAFEAbceDReRG8DkELzKdtNUSPUqzj+zDVMwI7n/GPPyqBTx8F7wwY7+1X0aw5UlGK
         VhYhCeOJEb6S1yc84Y78Vl8w5baj0r4PYGWQQwTIBF5ugNuByVqpbABB1eO8MN1V/tl+
         94Iw==
X-Gm-Message-State: AA6/9RlIbs48oYMUKmZutlxSaQXN23ikpXKplcppd8+3ITGXyD/aapF7UHiGfjkxRbutTQ==
X-Received: by 10.107.14.19 with SMTP id 19mr141057ioo.41.1476791638534;
        Tue, 18 Oct 2016 04:53:58 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.138.37 with SMTP id m37ls5240328iod.33.gmail; Tue, 18 Oct
 2016 04:53:56 -0700 (PDT)
X-Received: by 10.107.138.65 with SMTP id m62mr624265iod.213.1476791636577;
        Tue, 18 Oct 2016 04:53:56 -0700 (PDT)
Original-Received: from mail-it0-x233.google.com (mail-it0-x233.google.com. [2607:f8b0:4001:c0b::233])
        by mx.google.com with ESMTPS id 88si10949400iop.72.2016.10.18.04.53.56
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 18 Oct 2016 04:53:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c0b::233 as permitted sender) client-ip=2607:f8b0:4001:c0b::233;
Original-Received: by mail-it0-x233.google.com with SMTP id 139so70817419itm.1
        for <std-proposals@isocpp.org>; Tue, 18 Oct 2016 04:53:56 -0700 (PDT)
X-Received: by 10.36.69.232 with SMTP id c101mr12004736itd.14.1476791636061;
 Tue, 18 Oct 2016 04:53:56 -0700 (PDT)
Original-Received: by 10.36.28.200 with HTTP; Tue, 18 Oct 2016 04:53:55 -0700 (PDT)
In-Reply-To: <8a6731f7-1c9b-482d-817e-c2374fc9ae1b@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:4001:c0b::233 as permitted
 sender) smtp.mailfrom=ville.voutilainen@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: <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:28933
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28933>

On 18 October 2016 at 13:03,  <mihailnajdenov@gmail.com> wrote:
> 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)

I don't know what authority settled that point for every codebase on the planet.

> 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.

I don't consider reset and release to necessarily manage lifetime.

> Also, it can be well misleading, it monitors object lifetime - after all
> other smart pointers control lifetime, this one is probably just observing
> it.

It doesn't observe lifetime.

-- 
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/CAFk2RUaKZCx2LvRcHWxff6Y_w0Jd0nwkagwLHc9aFQh9oxnxOw%40mail.gmail.com.

.
