2 #ifndef BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
\r
3 #define BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2001-2004
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/libs/mpl for documentation.
\r
13 // $Id: empty_base.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
15 // $Revision: 49267 $
\r
17 #include <boost/mpl/bool.hpp>
\r
18 #include <boost/mpl/aux_/config/msvc.hpp>
\r
19 #include <boost/mpl/aux_/config/workaround.hpp>
\r
21 #include <boost/type_traits/is_empty.hpp>
\r
23 // should be always the last #include directive
\r
24 #include <boost/type_traits/detail/bool_trait_def.hpp>
\r
26 namespace boost { namespace mpl {
\r
28 // empty base class, guaranteed to have no members; inheritance from
\r
29 // 'empty_base' through the 'inherit' metafunction is a no-op - see
\r
30 // "mpl/inherit.hpp> header for the details
\r
31 struct empty_base {};
\r
33 template< typename T >
\r
34 struct is_empty_base
\r
37 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
\r
38 using false_::value;
\r
43 struct is_empty_base<empty_base>
\r
46 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
\r
54 BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_empty, mpl::empty_base, true)
\r
57 #include <boost/type_traits/detail/bool_trait_undef.hpp>
\r
59 #endif // BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
\r