From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-02-25 09:57:07
Fernando Cacciola wrote:
> Yes, that's why I was thinking of something that were overloaded for T
> rather than for optional<T>.
> Anyway, there are still problems with this: operator new is called
> _before_ the T is constructed, so there won't be a way, AFAICT, to
> properly set the initialized flag ('cause if T ctor throws, placement
> new won't be aware of it)
It's a costs / benefits situation... I never thought exception handlings
what that much of a problem AFAIK.
Philippe A. Bouchard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk