Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/mpl/empty_base.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 |
Chris@16 | 2 #ifndef BOOST_MPL_EMPTY_BASE_HPP_INCLUDED |
Chris@16 | 3 #define BOOST_MPL_EMPTY_BASE_HPP_INCLUDED |
Chris@16 | 4 |
Chris@16 | 5 // Copyright Aleksey Gurtovoy 2001-2004 |
Chris@16 | 6 // |
Chris@16 | 7 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 8 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 9 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 10 // |
Chris@16 | 11 // See http://www.boost.org/libs/mpl for documentation. |
Chris@16 | 12 |
Chris@101 | 13 // $Id$ |
Chris@101 | 14 // $Date$ |
Chris@101 | 15 // $Revision$ |
Chris@16 | 16 |
Chris@16 | 17 #include <boost/mpl/bool.hpp> |
Chris@16 | 18 #include <boost/mpl/aux_/config/msvc.hpp> |
Chris@16 | 19 #include <boost/mpl/aux_/config/workaround.hpp> |
Chris@16 | 20 |
Chris@16 | 21 #include <boost/type_traits/is_empty.hpp> |
Chris@16 | 22 |
Chris@16 | 23 // should be always the last #include directive |
Chris@16 | 24 #include <boost/type_traits/detail/bool_trait_def.hpp> |
Chris@16 | 25 |
Chris@16 | 26 namespace boost { namespace mpl { |
Chris@16 | 27 |
Chris@16 | 28 // empty base class, guaranteed to have no members; inheritance from |
Chris@16 | 29 // 'empty_base' through the 'inherit' metafunction is a no-op - see |
Chris@16 | 30 // "mpl/inherit.hpp> header for the details |
Chris@16 | 31 struct empty_base {}; |
Chris@16 | 32 |
Chris@16 | 33 template< typename T > |
Chris@16 | 34 struct is_empty_base |
Chris@16 | 35 : false_ |
Chris@16 | 36 { |
Chris@16 | 37 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) |
Chris@16 | 38 using false_::value; |
Chris@16 | 39 #endif |
Chris@16 | 40 }; |
Chris@16 | 41 |
Chris@16 | 42 template<> |
Chris@16 | 43 struct is_empty_base<empty_base> |
Chris@16 | 44 : true_ |
Chris@16 | 45 { |
Chris@16 | 46 #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) |
Chris@16 | 47 using true_::value; |
Chris@16 | 48 #endif |
Chris@16 | 49 }; |
Chris@16 | 50 |
Chris@16 | 51 }} |
Chris@16 | 52 |
Chris@16 | 53 namespace boost { |
Chris@16 | 54 BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_empty, mpl::empty_base, true) |
Chris@16 | 55 } |
Chris@16 | 56 |
Chris@16 | 57 #include <boost/type_traits/detail/bool_trait_undef.hpp> |
Chris@16 | 58 |
Chris@16 | 59 #endif // BOOST_MPL_EMPTY_BASE_HPP_INCLUDED |