From 172d49cf5464be290282e12df927571ac3a8ec66 Mon Sep 17 00:00:00 2001 From: Dmitry Sobinov Date: Mon, 14 Sep 2015 23:01:58 +1000 Subject: [PATCH] Fixed build errors with gcc and LLVM libc++ --- include/boost/move/detail/iterator_traits.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/move/detail/iterator_traits.hpp b/include/boost/move/detail/iterator_traits.hpp index 2c5dc3e..d84c4f5 100644 --- a/include/boost/move/detail/iterator_traits.hpp +++ b/include/boost/move/detail/iterator_traits.hpp @@ -24,10 +24,13 @@ #include -#if defined(__clang__) && defined(_LIBCPP_VERSION) +#if defined(__clang__) #define BOOST_MOVE_CLANG_INLINE_STD_NS #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wc++11-extensions" +#endif + +#ifdef _LIBCPP_VERSION #define BOOST_MOVE_STD_NS_BEG _LIBCPP_BEGIN_NAMESPACE_STD #define BOOST_MOVE_STD_NS_END _LIBCPP_END_NAMESPACE_STD #else