123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #if !defined(FUSION_SUPPORT_CONFIG_01092014_1718)
- #define FUSION_SUPPORT_CONFIG_01092014_1718
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #include <utility>
- #ifndef BOOST_FUSION_GPU_ENABLED
- #define BOOST_FUSION_GPU_ENABLED BOOST_GPU_ENABLED
- #endif
- namespace boost { namespace fusion { namespace detail
- {
- namespace barrier { }
- using namespace barrier;
- }}}
- #define BOOST_FUSION_BARRIER_BEGIN namespace barrier {
- #define BOOST_FUSION_BARRIER_END }
- #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1900))
- # define BOOST_FUSION_FWD_ELEM(type, value) static_cast<type&&>(value)
- #else
- # define BOOST_FUSION_FWD_ELEM(type, value) std::forward<type>(value)
- #endif
- #if (defined(BOOST_LIBSTDCXX_VERSION) && (BOOST_LIBSTDCXX_VERSION < 40500) && \
- defined(BOOST_LIBSTDCXX11)) || \
- (defined(BOOST_MSVC) && (1600 <= BOOST_MSVC && BOOST_MSVC < 1900))
- # define BOOST_FUSION_WORKAROUND_FOR_LWG_2408
- namespace std
- {
- template <typename>
- struct iterator_traits;
- }
- #endif
- #if BOOST_WORKAROUND(BOOST_GCC, < 40700)
- #define BOOST_FUSION_CONSTEXPR_THIS
- #else
- #define BOOST_FUSION_CONSTEXPR_THIS BOOST_CONSTEXPR
- #endif
- #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1913)) || \
- BOOST_WORKAROUND(BOOST_GCC, < 40700) || \
- defined(BOOST_CLANG) && (__clang_major__ == 3 && __clang_minor__ == 0)
- # if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
- namespace boost { namespace fusion { namespace detail
- {
- template <typename T>
- using type_alias_t = T;
- }}}
- # define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
- boost::fusion::detail::type_alias_t<decltype parenthesized_expr>
- # else
- # include <boost/mpl/identity.hpp>
- # define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
- boost::mpl::identity<decltype parenthesized_expr>::type
- # endif
- #else
- # define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
- decltype parenthesized_expr
- #endif
- #if BOOST_WORKAROUND(BOOST_GCC, / 100 == 406)
- # define BOOST_FUSION_NOEXCEPT_ON_DEFAULTED
- #else
- # define BOOST_FUSION_NOEXCEPT_ON_DEFAULTED BOOST_NOEXCEPT
- #endif
- #ifdef _MSC_VER
- # define BOOST_FUSION_PUSH_WARNINGS __pragma(warning(push))
- # define BOOST_FUSION_POP_WARNINGS __pragma(warning(pop))
- # define BOOST_FUSION_DISABLE_MSVC_WARNING(num) __pragma(warning(disable : num))
- #else
- # define BOOST_FUSION_PUSH_WARNINGS
- # define BOOST_FUSION_POP_WARNINGS
- # define BOOST_FUSION_DISABLE_MSVC_WARNING(num)
- #endif
- #endif
|