From 85b41c26d42cadb81cc71bd80736924f4916e060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 29 Nov 2014 18:45:13 +0100 Subject: [PATCH] Limit libstdc++ only to GCC as clang/icc gnuc versions don't match well with libstdc++ installations --- include/boost/move/adl_move_swap.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/move/adl_move_swap.hpp b/include/boost/move/adl_move_swap.hpp index a84b883..a3373a1 100644 --- a/include/boost/move/adl_move_swap.hpp +++ b/include/boost/move/adl_move_swap.hpp @@ -25,15 +25,15 @@ //Try to avoid including , as it's quite big #if defined(_MSC_VER) && defined(BOOST_DINKUMWARE_STDLIB) #include //Dinkum libraries define std::swap in utility which is lighter than algorithm -#elif defined(BOOST_GNU_STDLIB) +#elif defined(BOOST_GCC) && defined(BOOST_GNU_STDLIB) #if (__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3)) #include //algobase is lighter than #elif ((__GNUC__ == 4) && (__GNUC_MINOR__ == 3)) //In GCC 4.3 a tiny stl_move.h was created with swap and move utilities - #include //algobase is much lighter than + #include #else //In GCC 4.4 stl_move.h was renamed to move.h - #include //algobase is much lighter than + #include #endif #elif defined(_LIBCPP_VERSION) #include //The initial import of libc++ defines std::swap and still there