1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/bool.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +
1.5 +#ifndef BOOST_MPL_BOOL_HPP_INCLUDED
1.6 +#define BOOST_MPL_BOOL_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2000-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/bool.hpp,v $
1.17 +// $Date: 2004/09/26 09:54:25 $
1.18 +// $Revision: 1.6 $
1.19 +
1.20 +#include <boost/mpl/bool_fwd.hpp>
1.21 +#include <boost/mpl/integral_c_tag.hpp>
1.22 +#include <boost/mpl/aux_/config/static_constant.hpp>
1.23 +
1.24 +BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
1.25 +
1.26 +template< bool C_ > struct bool_
1.27 +{
1.28 + BOOST_STATIC_CONSTANT(bool, value = C_);
1.29 + typedef integral_c_tag tag;
1.30 + typedef bool_ type;
1.31 + typedef bool value_type;
1.32 + operator bool() const { return this->value; }
1.33 +};
1.34 +
1.35 +#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
1.36 +template< bool C_ >
1.37 +bool const bool_<C_>::value;
1.38 +#endif
1.39 +
1.40 +BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
1.41 +
1.42 +#endif // BOOST_MPL_BOOL_HPP_INCLUDED