Boost logo

Boost :

Subject: Re: [boost] [optional] get() misses optional r-value overload in contrast to operator* and value()
From: Viktor Sehr (viktor.sehr_at_[hidden])
Date: 2018-03-28 01:45:14


>
>
> ("I am interested in value, not in address").
>
>

Hi,
I'm going a little bit off-topic here, but another possible idealistic
interpretations could be as following:
As a const reference extends the lifetime of an object returned by value,
I'd like to (once again ideally) interpret
*const auto&* as "give me the value as effective as possible", and *const
auto *as "I require the value to be a copy".

That trail of thought is what got me here in the beginning, and
unfortunately reality does not match :/

/Viktor


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk