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