libqi-api
2.0.6.8
|
Detect if a type is using boost::noncopyable or QI_DISALLOW_COPY_AND_ASSIGN. More...
#include <traits.hpp>
Public Types | |
typedef char | yes [1] |
typedef char | no [2] |
Static Public Member Functions | |
template<typename C > | |
static no & | test (typename C::_qi_not_clonable *) |
template<typename > | |
static yes & | test (...) |
Static Public Attributes | |
static const bool | value |
Detect if a type is using boost::noncopyable or QI_DISALLOW_COPY_AND_ASSIGN.
Definition at line 21 of file traits.hpp.
typedef char qi::IsClonable< T >::no[2] |
Definition at line 24 of file traits.hpp.
typedef char qi::IsClonable< T >::yes[1] |
Definition at line 23 of file traits.hpp.
static no& qi::IsClonable< T >::test | ( | typename C::_qi_not_clonable * | ) | [static] |
const bool qi::IsClonable< T >::value [static] |
sizeof(test<T>(0)) == sizeof(yes) && ! boost::is_base_of<boost::noncopyable, T>::value
Definition at line 31 of file traits.hpp.