From: Eric Friedman (ebf_at_[hidden])
Date: 2003-10-08 18:58:25
To mitigate the concerns of Eugene Gladyshev and Dave Abrahams, I've
modified variant to search through its bounded types for one that is
nothrow default-constructible and may be used as a "fallback" type in
the event of variant assignment failure. The change is now in CVS.
Thus, for example, variant<int,T> and variant<T,int> now both operate
without any dynamic allocation, irrespective of the presence or behavior
of a default constructor for T.
However, this change still does not resolve the question with respect to
generic code, where it is not known if any of the types Ti provided to
some generic code are nothrow default-constructible.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk