mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 12:07:36 +02:00
N3031 workaround for compilers without alias templates
This commit is contained in:
@ -101,6 +101,7 @@ namespace std
|
|||||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1913)) || \
|
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1913)) || \
|
||||||
BOOST_WORKAROUND(BOOST_GCC, < 40700) || \
|
BOOST_WORKAROUND(BOOST_GCC, < 40700) || \
|
||||||
defined(BOOST_CLANG) && (__clang_major__ == 3 && __clang_minor__ == 0)
|
defined(BOOST_CLANG) && (__clang_major__ == 3 && __clang_minor__ == 0)
|
||||||
|
# if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||||
namespace boost { namespace fusion { namespace detail
|
namespace boost { namespace fusion { namespace detail
|
||||||
{
|
{
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -108,6 +109,11 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
}}}
|
}}}
|
||||||
# define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
|
# define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
|
||||||
boost::fusion::detail::type_alias_t<decltype 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
|
#else
|
||||||
# define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
|
# define BOOST_FUSION_DECLTYPE_N3031(parenthesized_expr) \
|
||||||
decltype parenthesized_expr
|
decltype parenthesized_expr
|
||||||
|
Reference in New Issue
Block a user