|
Boost : |
Subject: Re: [boost] Is there any interest in non-owning pointer-like types?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2017-02-01 06:00:49
On Wed, Feb 1, 2017 at 10:27 AM, Rob Stewart <rstewart_at_[hidden]> wrote:
> On February 1, 2017 2:47:54 AM EST, Joseph Thomson <joseph.thomson_at_[hidden]> wrote:
> Can observer_ptr refer to no object? If not, why not just use T &? If so, why not just use optional<T>?
optional<T> is a value, not a pointer/reference..
-- Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk