Boost logo

Boost :

From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2005-10-17 16:47:07


> On Behalf Of Fernando Cacciola

Personally, I agree with your choices on rebinding and the "pointer
style" interface. The safe_bool idiom is too handy to pass up - it
allows you to do nice things like declaring variables in an if
expression, and the main reason to overload operator->() is because you
can't overload operator.(). Sure it's sugar, but it's tasty and makes
life easier.

> optional<T&> has the exact same semantics of optional<
> reference_wrapper<T> >

That's the best description and rationalization of the semantics of
optional<T&> I've heard yet.


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