
11 Jan
2013
11 Jan
'13
3:22 p.m.
Paul Smith wrote:
That's the first constructive solution so far. Something like:
template <typename T> struct is_legitimate_move_target // specialize me : has_trivial_constructor<T> {};
has_nothrow_default_constructor is enough. There's no need to introduce a separate trait. Read http://www.boost.org/doc/libs/1_52_0/doc/html/variant/design.html#variant.de... people. It's all explained there.