Sha256: fcdd6ac2e23d0dad9670d1ea0b4716caa07a3fb953cda00b51a6d92182c79df0

Contents?: true

Size: 792 Bytes

Versions: 69

Compression:

Stored size: 792 Bytes

Contents

// Copyright Daniel Wallin, David Abrahams 2005. Use, modification and
// distribution is subject to 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 YESNO_050328_HPP
#define YESNO_050328_HPP

#include <boost/mpl/bool.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];

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

}}} // namespace boost::parameter::aux

#endif // YESNO_050328_HPP

Version data entries

69 entries across 69 versions & 3 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp