2 #ifndef BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
3 #define BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
5 // + file: boost/mpl/aux_/yes_no.hpp
6 // + last modified: 05/nov/03
8 // Copyright Aleksey Gurtovoy 2000-03
10 // Use, modification and distribution are subject to the Boost Software
11 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
12 // at http://www.boost.org/LICENSE_1_0.txt)
14 // See http://www.boost.org/libs/mpl for documentation.
17 #include "boost/mpl/aux_/config/workaround.hpp"
18 #include "boost/mpl/aux_/config/msvc.hpp"
20 namespace boost { namespace mpl { namespace aux {
22 typedef char (&no_tag)[1];
23 typedef char (&yes_tag)[2];
25 template< bool C_ > struct yes_no_tag
30 template<> struct yes_no_tag<true>
36 template< long n > struct weighted_tag
38 #if !BOOST_WORKAROUND(BOOST_MSVC, == 1200)
39 typedef char (&type)[n];
42 typedef weighted_tag type;
46 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
47 || BOOST_WORKAROUND(BOOST_MSVC, == 1300)
48 template<> struct weighted_tag<0>
50 typedef char (&type)[1];
54 }}} // namespace boost::mpl::aux
56 #endif // BOOST_MPL_AUX_YES_NO_HPP_INCLUDED