office-gobmx/boost/boost.std.move.patch
Tor Lillqvist c2d2b521e8 Seems Apple's Clang has C++11 fully working rvalue references only with libc++
Change-Id: Iad3f984722be648a64490976933e9b2c2b950bdc
2013-05-24 12:40:47 +03:00

20 lines
551 B
Diff

--- foo/foo/foo/boost/config/compiler/clang.hpp
+++ foo/foo/foo/boost/config/compiler/clang.hpp
@@ -8,6 +8,8 @@
// Clang compiler setup.
+#include <utility>
+
#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
# define BOOST_NO_EXCEPTIONS
#endif
@@ -108,7 +108,7 @@
# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
#endif
-#if !__has_feature(cxx_rvalue_references)
+#if !__has_feature(cxx_rvalue_references) || (defined(__APPLE__) && !defined(_LIBCPP_VERSION))
# define BOOST_NO_CXX11_RVALUE_REFERENCES
#endif