1
//-----------------------------------------------------------------------------
2
// boost mpl/empty_base.hpp header file
3
// See http://www.boost.org for updates, documentation, and revision history.
4
//-----------------------------------------------------------------------------
6
// Copyright (c) 2001-02
9
// Permission to use, copy, modify, distribute and sell this software
10
// and its documentation for any purpose is hereby granted without fee,
11
// provided that the above copyright notice appears in all copies and
12
// that both the copyright notice and this permission notice appear in
13
// supporting documentation. No representations are made about the
14
// suitability of this software for any purpose. It is provided "as is"
15
// without express or implied warranty.
17
#ifndef BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
18
#define BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
20
#include "boost/type_traits/is_empty.hpp"
21
#include "boost/mpl/bool.hpp"
22
#include "boost/config.hpp"
24
// should be always the last #include directive
25
#include "boost/type_traits/detail/bool_trait_def.hpp"
30
// empty base class, guaranteed to have no members; inheritance from
31
// 'empty_base' through the 'inherit' metafunction is a no-op - see
32
// "mpl/inherit.hpp" header for the details
35
template< typename T >
39
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
45
struct is_empty_base<empty_base>
48
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
55
BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_empty, mpl::empty_base, true)
59
#include "boost/type_traits/detail/bool_trait_undef.hpp"
61
#endif // BOOST_MPL_EMPTY_BASE_HPP_INCLUDED