forked from boostorg/mp11
Enable fold expressions on g++
This commit is contained in:
@@ -499,7 +499,7 @@ namespace detail
|
||||
|
||||
template<class L, class V> struct mp_find_impl;
|
||||
|
||||
#if defined( BOOST_MP11_HAS_FOLD_EXPRESSIONS )
|
||||
#if defined( BOOST_CLANG ) && defined( BOOST_MP11_HAS_FOLD_EXPRESSIONS )
|
||||
|
||||
struct mp_index_holder
|
||||
{
|
||||
@@ -589,7 +589,7 @@ namespace detail
|
||||
|
||||
template<class L, template<class...> class P> struct mp_find_if_impl;
|
||||
|
||||
#if defined( BOOST_MP11_HAS_FOLD_EXPRESSIONS )
|
||||
#if defined( BOOST_CLANG ) && defined( BOOST_MP11_HAS_FOLD_EXPRESSIONS )
|
||||
|
||||
template<template<class...> class L, class... T, template<class...> class P> struct mp_find_if_impl<L<T...>, P>
|
||||
{
|
||||
|
@@ -21,7 +21,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_CLANG) && defined(__has_cpp_attribute)
|
||||
#if defined(__cpp_fold_expressions) && __cpp_fold_expressions >= 201603
|
||||
|
||||
# define BOOST_MP11_HAS_FOLD_EXPRESSIONS
|
||||
|
||||
#elif defined(BOOST_CLANG) && defined(__has_cpp_attribute)
|
||||
# if __has_cpp_attribute(fallthrough) && __cplusplus >= 201406L // Clang 3.9+ in c++1z mode
|
||||
|
||||
# define BOOST_MP11_HAS_FOLD_EXPRESSIONS
|
||||
|
Reference in New Issue
Block a user