00001 00002 #ifndef BOOST_MPL_BOOL_HPP_INCLUDED 00003 #define BOOST_MPL_BOOL_HPP_INCLUDED 00004 00005 // Copyright Aleksey Gurtovoy 2000-2004 00006 // 00007 // Distributed under the Boost Software License, Version 1.0. 00008 // (See accompanying file LICENSE_1_0.txt or copy at 00009 // http://www.boost.org/LICENSE_1_0.txt) 00010 // 00011 // See http://www.boost.org/libs/mpl for documentation. 00012 00013 // $Source: /Users/acg/CVSROOT/systemc-2.2/src/sysc/packages/boost/mpl/bool.hpp,v $ 00014 // $Date: 2006/12/15 20:31:38 $ 00015 // $Revision: 1.1.1.1 $ 00016 00017 #include <sysc/packages/boost/mpl/bool_fwd.hpp> 00018 #include <sysc/packages/boost/mpl/integral_c_tag.hpp> 00019 #include <sysc/packages/boost/mpl/aux_/config/static_constant.hpp> 00020 00021 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN 00022 00023 template< bool C_ > struct bool_ 00024 { 00025 BOOST_STATIC_CONSTANT(bool, value = C_); 00026 typedef integral_c_tag tag; 00027 typedef bool_ type; 00028 typedef bool value_type; 00029 operator bool() const { return this->value; } 00030 }; 00031 00032 #if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION) 00033 template< bool C_ > 00034 bool const bool_<C_>::value; 00035 #endif 00036 00037 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE 00038 00039 #endif // BOOST_MPL_BOOL_HPP_INCLUDED
1.5.5