Boost logo

Boost :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2005-10-25 12:50:48


Yuval Ronen wrote:
> optional<T>(y).swap(o);
>
> or
>
> make_optional(y).swap(o);
>
> which is completely different...

which can be a terrible idea (it just occurred to me), depends on how
optional's swap is implemented, and if/how T can be efficiently swaped...


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