Changed boost::true_type/false_type to mpl::true_/false_

[SVN r21335]
This commit is contained in:
John Maddock
2003-12-19 12:11:55 +00:00
parent 1d0e43de3d
commit 970a90b365
2 changed files with 9 additions and 9 deletions

View File

@ -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.&nbsp; 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 &lt;boost/type_traits/is_pod.hpp&gt;
# include &lt;boost/type_traits/is_class.hpp&gt;
# include &lt;boost/type_traits/is_union.hpp&gt;
@ -870,16 +870,16 @@ namespace boost
{
template&lt;&gt;
struct is_pod&lt;my_pod&gt;
: public true_type{};
: public mpl::true_{};
template&lt;&gt;
struct is_pod&lt;my_union&gt;
: public true_type{};
: public mpl::true_{};
template&lt;&gt;
struct is_union&lt;my_union&gt;
: public true_type{};
: public mpl::true_{};
template&lt;&gt;
struct is_class&lt;my_union&gt;
: public false_type{};
: public mpl::false_{};
}
</PRE>

View File

@ -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)