Kaydet (Commit) c2d2b521 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Seems Apple's Clang has C++11 fully working rvalue references only with libc++

Change-Id: Iad3f984722be648a64490976933e9b2c2b950bdc
üst ed74575b
...@@ -40,6 +40,7 @@ boost_patches += boost_1_44_0-gcc4.8.patch ...@@ -40,6 +40,7 @@ boost_patches += boost_1_44_0-gcc4.8.patch
boost_patches += boost.4874.patch boost_patches += boost.4874.patch
boost_patches += boost.loplugin.patch boost_patches += boost.loplugin.patch
boost_patches += boost.std.move.patch
boost_patches += boost.wundef.patch boost_patches += boost.wundef.patch
boost_patches += boost.wshadow.patch boost_patches += boost.wshadow.patch
......
--- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment