diff options
Diffstat (limited to 'boost/type_index/detail/compile_time_type_info.hpp')
-rw-r--r-- | boost/type_index/detail/compile_time_type_info.hpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/boost/type_index/detail/compile_time_type_info.hpp b/boost/type_index/detail/compile_time_type_info.hpp index 4eb2017ffc..7a55350b9e 100644 --- a/boost/type_index/detail/compile_time_type_info.hpp +++ b/boost/type_index/detail/compile_time_type_info.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2012-2016. +// Copyright (c) Antony Polukhin, 2012-2018. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -15,7 +15,7 @@ #include <boost/config.hpp> #include <boost/static_assert.hpp> -#include <boost/mpl/bool.hpp> +#include <boost/type_traits/integral_constant.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once @@ -59,6 +59,14 @@ // sizeof("static const char *boost::detail::ctti<") - 1, sizeof("]") - 1, true, "int>::n() [T = int" // note: checked on 3.1, 3.4 BOOST_TYPE_INDEX_REGISTER_CTTI_PARSING_PARAMS(39, 1, true, "T = ") +#elif defined(__EDG__) && !defined(BOOST_NO_CXX14_CONSTEXPR) + // sizeof("static cha boost::detail::ctti<T>::s() [with I = 40U, T = ") - 1, sizeof("]") - 1 + // note: checked on 4.14 + BOOST_TYPE_INDEX_REGISTER_CTTI_PARSING_PARAMS(58, 1, false, "") +#elif defined(__EDG__) && defined(BOOST_NO_CXX14_CONSTEXPR) + // sizeof("static const char *boost::detail::ctti<T>::n() [with T = ") - 1, sizeof("]") - 1 + // note: checked on 4.14 + BOOST_TYPE_INDEX_REGISTER_CTTI_PARSING_PARAMS(57, 1, false, "") #elif defined(__GNUC__) && (__GNUC__ < 7) && !defined(BOOST_NO_CXX14_CONSTEXPR) // sizeof("static constexpr char boost::detail::ctti<T>::s() [with unsigned int I = 0u; T = ") - 1, sizeof("]") - 1 BOOST_TYPE_INDEX_REGISTER_CTTI_PARSING_PARAMS(81, 1, false, "") @@ -98,7 +106,7 @@ namespace boost { namespace typeindex { namespace detail { } template <unsigned int ArrayLength> - BOOST_CXX14_CONSTEXPR inline const char* skip_begining_runtime(const char* begin, boost::mpl::false_) BOOST_NOEXCEPT { + BOOST_CXX14_CONSTEXPR inline const char* skip_begining_runtime(const char* begin, boost::false_type) BOOST_NOEXCEPT { return begin; } @@ -140,7 +148,7 @@ namespace boost { namespace typeindex { namespace detail { } template <unsigned int ArrayLength> - BOOST_CXX14_CONSTEXPR inline const char* skip_begining_runtime(const char* begin, boost::mpl::true_) BOOST_NOEXCEPT { + BOOST_CXX14_CONSTEXPR inline const char* skip_begining_runtime(const char* begin, boost::true_type) BOOST_NOEXCEPT { const char* const it = constexpr_search( begin, begin + ArrayLength, ctti_skip_until_runtime, ctti_skip_until_runtime + sizeof(ctti_skip_until_runtime) - 1 @@ -153,7 +161,7 @@ namespace boost { namespace typeindex { namespace detail { assert_compile_time_legths<(ArrayLength > ctti_skip_size_at_begin + ctti_skip_size_at_end)>(); return skip_begining_runtime<ArrayLength - ctti_skip_size_at_begin>( begin + ctti_skip_size_at_begin, - boost::mpl::bool_<ctti_skip_more_at_runtime>() + boost::integral_constant<bool, ctti_skip_more_at_runtime>() ); } |