|
Boost : |
From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2005-10-17 15:16:46
> On Behalf Of Leo Goodstadt
> The easiest solution to disambiguate, would be to force all binding
and
> rebinding of optional references to use distinct syntax (rebind) so
that
> this is clearly signalled at the minor cost of some syntactic
verbosity.
> This means that optional<T&> is no longer completely orthogonal to
> optional<T> in its syntax, but as that merely reflects the real
underlying
> differences in semantics, this should be an advantage not a
disadvantage.
An easy way to do that would be to disallow optional<T&> and spell it
instead as optional<reference_wrapper<T> > as someone suggested the last
time this was discussed.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk