epoc32/include/stdapis/boost/mpl/aux_/yes_no.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/yes_no.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,58 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
     1.6 +#define BOOST_MPL_AUX_YES_NO_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2004
     1.9 +//
    1.10 +// Distributed under the Boost Software License, Version 1.0. 
    1.11 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.12 +// http://www.boost.org/LICENSE_1_0.txt)
    1.13 +//
    1.14 +// See http://www.boost.org/libs/mpl for documentation.
    1.15 +
    1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/aux_/yes_no.hpp,v $
    1.17 +// $Date: 2005/08/25 16:27:21 $
    1.18 +// $Revision: 1.8 $
    1.19 +
    1.20 +#include <boost/mpl/aux_/nttp_decl.hpp>
    1.21 +#include <boost/mpl/aux_/config/arrays.hpp>
    1.22 +#include <boost/mpl/aux_/config/msvc.hpp>
    1.23 +#include <boost/mpl/aux_/config/workaround.hpp>
    1.24 +
    1.25 +
    1.26 +namespace boost { namespace mpl { namespace aux {
    1.27 +
    1.28 +typedef char (&no_tag)[1];
    1.29 +typedef char (&yes_tag)[2];
    1.30 +
    1.31 +template< bool C_ > struct yes_no_tag
    1.32 +{
    1.33 +    typedef no_tag type;
    1.34 +};
    1.35 +
    1.36 +template<> struct yes_no_tag<true>
    1.37 +{
    1.38 +    typedef yes_tag type;
    1.39 +};
    1.40 +
    1.41 +
    1.42 +template< BOOST_MPL_AUX_NTTP_DECL(long, n) > struct weighted_tag
    1.43 +{
    1.44 +#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300)
    1.45 +    typedef char (&type)[n];
    1.46 +#else
    1.47 +    char buf[n];
    1.48 +    typedef weighted_tag type;
    1.49 +#endif
    1.50 +};
    1.51 +
    1.52 +#if defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES)
    1.53 +template<> struct weighted_tag<0>
    1.54 +{
    1.55 +    typedef char (&type)[1];
    1.56 +};
    1.57 +#endif
    1.58 +
    1.59 +}}}
    1.60 +
    1.61 +#endif // BOOST_MPL_AUX_YES_NO_HPP_INCLUDED