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




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to