Adjust LWG2408 workaround enabling condition.

This commit is contained in:
Kohei Takahashi
2015-03-25 21:49:22 +09:00
parent d03f79b6fd
commit 01a2d6557e

View File

@ -75,10 +75,10 @@ namespace boost { namespace fusion { namespace detail
// - GCC 4.5 enables the feature under C++11. // - GCC 4.5 enables the feature under C++11.
// https://gcc.gnu.org/ml/gcc-patches/2014-11/msg01105.html // https://gcc.gnu.org/ml/gcc-patches/2014-11/msg01105.html
// //
// - Only MSVC 12.0 doesn't have the feature. // - MSVC 10.0 implements iterator intrinsics; MSVC 13.0 implements LWG2408.
#if (defined(BOOST_LIBSTDCXX_VERSION) && (BOOST_LIBSTDCXX_VERSION < 40500) && \ #if (defined(BOOST_LIBSTDCXX_VERSION) && (BOOST_LIBSTDCXX_VERSION < 40500) && \
defined(BOOST_LIBSTDCXX11)) || \ defined(BOOST_LIBSTDCXX11)) || \
(defined(BOOST_MSVC) && (BOOST_MSVC == 1800)) (defined(BOOST_MSVC) && (1600 <= BOOST_MSVC || BOOST_MSVC < 1900))
# define BOOST_FUSION_WORKAROUND_FOR_LWG_2408 # define BOOST_FUSION_WORKAROUND_FOR_LWG_2408
namespace std namespace std
{ {