forked from boostorg/type_traits
Changed boost::true_type/false_type to mpl::true_/false_
[SVN r21335]
This commit is contained in:
10
index.html
10
index.html
@ -854,7 +854,7 @@ bool const y = boost::is_convertible<D*,A*>::value; // error
|
||||
<P>Occationally the end user may need to provide their own specialization for one
|
||||
of the type traits - typically where intrinsic compiler support is required to
|
||||
implement a specific trait fully. These specializations should derive
|
||||
from boost::true_type or boost::false_type as appropriate:</P>
|
||||
from boost::mpl::true_ or boost::mpl::false_ as appropriate:</P>
|
||||
<PRE># include <boost/type_traits/is_pod.hpp>
|
||||
# include <boost/type_traits/is_class.hpp>
|
||||
# include <boost/type_traits/is_union.hpp>
|
||||
@ -870,16 +870,16 @@ namespace boost
|
||||
{
|
||||
template<>
|
||||
struct is_pod<my_pod>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_pod<my_union>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_union<my_union>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_class<my_union>
|
||||
: public false_type{};
|
||||
: public mpl::false_{};
|
||||
}
|
||||
|
||||
</PRE>
|
||||
|
@ -20,16 +20,16 @@ namespace tt
|
||||
{
|
||||
template<>
|
||||
struct is_pod<my_pod>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_pod<my_union>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_union<my_union>
|
||||
: public true_type{};
|
||||
: public mpl::true_{};
|
||||
template<>
|
||||
struct is_class<my_union>
|
||||
: public false_type{};
|
||||
: public mpl::false_{};
|
||||
}
|
||||
|
||||
TT_TEST_BEGIN(is_pod)
|
||||
|
Reference in New Issue
Block a user