os/ossrv/ossrv_pub/boost_apis/boost/mpl/empty_base.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/empty_base.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,59 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
     1.6 +#define BOOST_MPL_EMPTY_BASE_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2001-2004
     1.9 +//
    1.10 +// Distributed under the Boost Software License, Version 1.0. 
    1.11 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.12 +// http://www.boost.org/LICENSE_1_0.txt)
    1.13 +//
    1.14 +// See http://www.boost.org/libs/mpl for documentation.
    1.15 +
    1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/empty_base.hpp,v $
    1.17 +// $Date: 2004/09/02 15:40:41 $
    1.18 +// $Revision: 1.4 $
    1.19 +
    1.20 +#include <boost/mpl/bool.hpp>
    1.21 +#include <boost/mpl/aux_/config/msvc.hpp>
    1.22 +#include <boost/mpl/aux_/config/workaround.hpp>
    1.23 +
    1.24 +#include <boost/type_traits/is_empty.hpp>
    1.25 +
    1.26 +// should be always the last #include directive
    1.27 +#include <boost/type_traits/detail/bool_trait_def.hpp>
    1.28 +
    1.29 +namespace boost { namespace mpl {
    1.30 +
    1.31 +// empty base class, guaranteed to have no members; inheritance from
    1.32 +// 'empty_base' through the 'inherit' metafunction is a no-op - see 
    1.33 +// "mpl/inherit.hpp> header for the details
    1.34 +struct empty_base {};
    1.35 +
    1.36 +template< typename T >
    1.37 +struct is_empty_base
    1.38 +    : false_
    1.39 +{
    1.40 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
    1.41 +    using false_::value;
    1.42 +#endif
    1.43 +};
    1.44 +
    1.45 +template<>
    1.46 +struct is_empty_base<empty_base>
    1.47 +    : true_
    1.48 +{
    1.49 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
    1.50 +    using true_::value;
    1.51 +#endif
    1.52 +};
    1.53 +
    1.54 +}}
    1.55 +
    1.56 +namespace boost {
    1.57 +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_empty, mpl::empty_base, true)
    1.58 +}
    1.59 +
    1.60 +#include <boost/type_traits/detail/bool_trait_undef.hpp>
    1.61 +
    1.62 +#endif // BOOST_MPL_EMPTY_BASE_HPP_INCLUDED