1
0
forked from boostorg/mp11

Enable fold expressions on g++

This commit is contained in:
Peter Dimov
2017-05-24 06:16:17 +03:00
parent 40a07e0f5a
commit 0e0d7fae4e
2 changed files with 7 additions and 3 deletions

View File

@@ -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>
{

View File

@@ -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