Boost logo

Boost :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2007-10-21 17:48:45


Mathias Gaunard wrote:
> The problem with small object optimization is that you get the same
> issue that boost.variant has: it's hard to maintain the never-empty
> guarantee in operator=,
Neither Boost.Any nor this optional_poly have a never-empty guarantee,
though. Which makes = a lot easier, if you're satisfied with the Basic
Guarantee.
On the other hand, a poly would need a never-empty guarantee, thus
making an optional<poly> much more complex than an optional_poly.

Sebastian Redl


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