Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/parameter/aux_/yesno.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Copyright Daniel Wallin, David Abrahams 2005. Use, modification and |
Chris@16 | 2 // distribution is subject to the Boost Software License, Version 1.0. (See |
Chris@16 | 3 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 4 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 5 |
Chris@16 | 6 #ifndef YESNO_050328_HPP |
Chris@16 | 7 #define YESNO_050328_HPP |
Chris@16 | 8 |
Chris@16 | 9 #include <boost/mpl/bool.hpp> |
Chris@16 | 10 |
Chris@16 | 11 namespace boost { namespace parameter { namespace aux { |
Chris@16 | 12 |
Chris@16 | 13 // types used with the "sizeof trick" to capture the results of |
Chris@16 | 14 // overload resolution at compile-time. |
Chris@16 | 15 typedef char yes_tag; |
Chris@16 | 16 typedef char (&no_tag)[2]; |
Chris@16 | 17 |
Chris@16 | 18 // mpl::true_ and mpl::false_ are not distinguishable by sizeof(), |
Chris@16 | 19 // so we pass them through these functions to get a type that is. |
Chris@16 | 20 yes_tag to_yesno(mpl::true_); |
Chris@16 | 21 no_tag to_yesno(mpl::false_); |
Chris@16 | 22 |
Chris@16 | 23 }}} // namespace boost::parameter::aux |
Chris@16 | 24 |
Chris@16 | 25 #endif // YESNO_050328_HPP |
Chris@16 | 26 |