Boost logo

Boost :

Subject: Re: [boost] [variant] Basic rvalue and C++11 features support
From: Peter Dimov (lists_at_[hidden])
Date: 2013-01-11 10:22:14


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.design.never-empty

people. It's all explained there.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk