From 9cc7307b030931cec43cf2f37efba58b7fa32838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 29 Aug 2011 11:22:19 +0000 Subject: [PATCH] Fixes for clang + cleanup [SVN r74125] --- include/boost/move/move.hpp | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/include/boost/move/move.hpp b/include/boost/move/move.hpp index 40c5c2c..86cd032 100644 --- a/include/boost/move/move.hpp +++ b/include/boost/move/move.hpp @@ -45,7 +45,6 @@ #include #include #include - #include #include #include #include @@ -184,31 +183,6 @@ ( ::boost::move_detail::addr_impl_ref( v ), 0 ); } - /* - typedef char one; - struct two {one _[2];}; - - template - struct is_base_of_host - { - operator B*() const; - operator D*(); - }; - - template - struct is_base_of - { - typedef char yes; - class no { char dummy[2]; }; - - template - static yes check(D*, T); - static no check(B*, int); - - static const bool value = sizeof(check(is_base_of_host(), int())) == sizeof(yes); - }; - */ - } //namespace move_detail { } //namespace boost { @@ -217,7 +191,7 @@ //Compiler workaround detection #if !defined(BOOST_NO_RVALUE_REFERENCES) - #if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) + #if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) && !defined(__clang__) //Pre-standard rvalue binding rules #define BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES #elif defined(_MSC_VER) && (_MSC_VER == 1600)