Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74125 - trunk/boost/move
From: igaztanaga_at_[hidden]
Date: 2011-08-29 07:22:19


Author: igaztanaga
Date: 2011-08-29 07:22:19 EDT (Mon, 29 Aug 2011)
New Revision: 74125
URL: http://svn.boost.org/trac/boost/changeset/74125

Log:
Fixes for clang + cleanup
Text files modified:
   trunk/boost/move/move.hpp | 28 +---------------------------
   1 files changed, 1 insertions(+), 27 deletions(-)

Modified: trunk/boost/move/move.hpp
==============================================================================
--- trunk/boost/move/move.hpp (original)
+++ trunk/boost/move/move.hpp 2011-08-29 07:22:19 EDT (Mon, 29 Aug 2011)
@@ -45,7 +45,6 @@
    #include <boost/mpl/not.hpp>
    #include <boost/mpl/identity.hpp>
    #include <boost/type_traits/is_class.hpp>
- #include <boost/type_traits/is_base_of.hpp>
    #include <boost/type_traits/is_convertible.hpp>
    #include <boost/type_traits/has_trivial_destructor.hpp>
    #include <boost/type_traits/integral_constant.hpp>
@@ -184,31 +183,6 @@
          ( ::boost::move_detail::addr_impl_ref<T>( v ), 0 );
    }
 
- /*
- typedef char one;
- struct two {one _[2];};
-
- template <typename B, typename D>
- struct is_base_of_host
- {
- operator B*() const;
- operator D*();
- };
-
- template <typename B, typename D>
- struct is_base_of
- {
- typedef char yes;
- class no { char dummy[2]; };
-
- template <typename T>
- static yes check(D*, T);
- static no check(B*, int);
-
- static const bool value = sizeof(check(is_base_of_host<B,D>(), 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)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk