Sha256: e48048e69632ec3c0418371be8f6354c37bd83ee78b770f3af5feeadb8fc45e2

Contents?: true

Size: 1.49 KB

Versions: 14

Compression:

Stored size: 1.49 KB

Contents

// Copyright Daniel Wallin, David Abrahams 2005.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_PARAMETER_AUX_YESNO_HPP
#define BOOST_PARAMETER_AUX_YESNO_HPP

namespace boost { namespace parameter { namespace aux {

    // types used with the "sizeof trick" to capture the results of
    // overload resolution at compile-time.
    typedef char yes_tag;
    typedef char (&no_tag)[2];
}}} // namespace boost::parameter::aux

#include <boost/mpl/bool.hpp>

namespace boost { namespace parameter { namespace aux {

    // mpl::true_ and mpl::false_ are not distinguishable by sizeof(),
    // so we pass them through these functions to get a type that is.
    ::boost::parameter::aux::yes_tag to_yesno(::boost::mpl::true_);
    ::boost::parameter::aux::no_tag to_yesno(::boost::mpl::false_);
}}} // namespace boost::parameter::aux

#include <boost/parameter/config.hpp>

#if defined(BOOST_PARAMETER_CAN_USE_MP11)
#include <boost/mp11/integral.hpp>

namespace boost { namespace parameter { namespace aux {

    // mp11::mp_true and mp11::mp_false are not distinguishable by sizeof(),
    // so we pass them through these functions to get a type that is.
    ::boost::parameter::aux::yes_tag to_yesno(::boost::mp11::mp_true);
    ::boost::parameter::aux::no_tag to_yesno(::boost::mp11::mp_false);
}}} // namespace boost::parameter::aux

#endif  // BOOST_PARAMETER_CAN_USE_MP11
#endif  // include guard

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp