]> git.lyx.org Git - lyx.git/blob - boost/boost/mpl/bool_c.hpp
complie fix
[lyx.git] / boost / boost / mpl / bool_c.hpp
1 //-----------------------------------------------------------------------------
2 // boost mpl/bool_c.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
5 //
6 // Copyright (c) 2000-02
7 // Aleksey Gurtovoy
8 //
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.
16
17 #ifndef BOOST_MPL_BOOL_C_HPP_INCLUDED
18 #define BOOST_MPL_BOOL_C_HPP_INCLUDED
19
20 #include "boost/config.hpp"
21
22 namespace boost {
23 namespace mpl {
24
25 template< bool C > struct bool_c
26 {
27     BOOST_STATIC_CONSTANT(bool, value = C);
28     typedef bool_c type;
29     typedef bool value_type;
30     operator bool() const { return this->value; }
31 };
32
33 // shorcuts
34 typedef bool_c<true> true_c;
35 typedef bool_c<false> false_c;
36
37 } // namespace mpl
38 } // namespace boost 
39
40 #endif // BOOST_MPL_BOOL_C_HPP_INCLUDED