Files
boost_mpl/include/boost/mpl/aux_/yes_no.hpp
T
2003-05-08 09:43:23 +00:00

39 lines
1021 B
C++

#ifndef BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
#define BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
// + file: boost/mpl/aux_/yes_no.hpp
// + last modified: 05/may/03
// Copyright (c) 2000-03
// Aleksey Gurtovoy
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appears in all copies and
// that both the copyright notice and this permission notice appear in
// supporting documentation. No representations are made about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
//
// See http://www.boost.org/libs/mpl for documentation.
namespace boost { namespace mpl { namespace aux {
typedef char (&no_tag)[1];
typedef char (&yes_tag)[2];
template< bool C_ > struct yes_no_tag
{
typedef no_tag type;
};
template<> struct yes_no_tag<true>
{
typedef yes_tag type;
};
}}}
#endif // BOOST_MPL_AUX_YES_NO_HPP_INCLUDED