2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
8 [section:user_defined User Defined Specializations]
10 Occationally the end user may need to provide their own specialization
11 for one of the type traits - typically where intrinsic compiler support
12 is required to implement a specific trait fully.
13 These specializations should derive from boost::__true_type or boost::__false_type
16 #include <boost/type_traits/is_pod.hpp>
17 #include <boost/type_traits/is_class.hpp>
18 #include <boost/type_traits/is_union.hpp>
30 struct __is_pod<my_pod> : public __true_type{};
33 struct __is_pod<my_union> : public __true_type{};
36 struct __is_union<my_union> : public __true_type{};
39 struct __is_class<my_union> : public __false_type{};