From 24f527d401ee348438e8a5f591be5ea130b9df2e Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Sun, 2 Aug 2015 21:58:20 +0900 Subject: [PATCH] Use BOOST_CONSTEXPR_OR_CONST instead. Older GCC cannot specify both of const and constexpr to variable decl. Partially fix #11517 --- include/boost/fusion/container/generation/ignore.hpp | 2 +- include/boost/fusion/support/unused.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/fusion/container/generation/ignore.hpp b/include/boost/fusion/container/generation/ignore.hpp index 15ce15d4..889f17d2 100644 --- a/include/boost/fusion/container/generation/ignore.hpp +++ b/include/boost/fusion/container/generation/ignore.hpp @@ -27,7 +27,7 @@ namespace boost { namespace fusion } // "ignore" allows tuple positions to be ignored when using "tie". - BOOST_CONSTEXPR detail::swallow_assign const ignore = detail::swallow_assign(); + BOOST_CONSTEXPR_OR_CONST detail::swallow_assign ignore = detail::swallow_assign(); }} #endif diff --git a/include/boost/fusion/support/unused.hpp b/include/boost/fusion/support/unused.hpp index 4bbe24e8..7e2a6eee 100644 --- a/include/boost/fusion/support/unused.hpp +++ b/include/boost/fusion/support/unused.hpp @@ -64,7 +64,7 @@ namespace boost { namespace fusion } }; - BOOST_CONSTEXPR unused_type const unused = unused_type(); + BOOST_CONSTEXPR_OR_CONST unused_type unused = unused_type(); namespace detail {