author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 3 | e1b950c65cb4 |
permissions | -rw-r--r-- |
williamr@4 | 1 |
|
williamr@4 | 2 |
#ifndef BOOST_MPL_BOOL_HPP_INCLUDED |
williamr@4 | 3 |
#define BOOST_MPL_BOOL_HPP_INCLUDED |
williamr@4 | 4 |
|
williamr@4 | 5 |
// Copyright Aleksey Gurtovoy 2000-2004 |
williamr@4 | 6 |
// |
williamr@4 | 7 |
// Distributed under the Boost Software License, Version 1.0. |
williamr@4 | 8 |
// (See accompanying file LICENSE_1_0.txt or copy at |
williamr@4 | 9 |
// http://www.boost.org/LICENSE_1_0.txt) |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// See http://www.boost.org/libs/mpl for documentation. |
williamr@4 | 12 |
|
williamr@4 | 13 |
// $Source: /cvsroot/boost/boost/boost/mpl/bool.hpp,v $ |
williamr@4 | 14 |
// $Date: 2004/09/26 09:54:25 $ |
williamr@4 | 15 |
// $Revision: 1.6 $ |
williamr@4 | 16 |
|
williamr@4 | 17 |
#include <boost/mpl/bool_fwd.hpp> |
williamr@4 | 18 |
#include <boost/mpl/integral_c_tag.hpp> |
williamr@4 | 19 |
#include <boost/mpl/aux_/config/static_constant.hpp> |
williamr@4 | 20 |
|
williamr@4 | 21 |
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN |
williamr@4 | 22 |
|
williamr@4 | 23 |
template< bool C_ > struct bool_ |
williamr@4 | 24 |
{ |
williamr@4 | 25 |
BOOST_STATIC_CONSTANT(bool, value = C_); |
williamr@4 | 26 |
typedef integral_c_tag tag; |
williamr@4 | 27 |
typedef bool_ type; |
williamr@4 | 28 |
typedef bool value_type; |
williamr@4 | 29 |
operator bool() const { return this->value; } |
williamr@4 | 30 |
}; |
williamr@4 | 31 |
|
williamr@4 | 32 |
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION) |
williamr@4 | 33 |
template< bool C_ > |
williamr@4 | 34 |
bool const bool_<C_>::value; |
williamr@4 | 35 |
#endif |
williamr@4 | 36 |
|
williamr@4 | 37 |
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE |
williamr@4 | 38 |
|
williamr@4 | 39 |
#endif // BOOST_MPL_BOOL_HPP_INCLUDED |