|
Boost : |
From: Vaclav Vesely (vaclav.vesely_at_[hidden])
Date: 2006-03-10 11:14:15
Hi,
When two optionals (one initialized and other not) are swaped, then the one
value in uninitialized optional is constructed and the other one in
initialized optional is destructed.
IMHO it's not necessary. It should be more effective to swap optional's
m_storages without any values constructiona and destruction.
Is there any reason for the current implementation?
Regards,
Vaclav
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk