Line 0
Link Here
|
|
|
1 |
--- boost/thread/pthread/once.hpp.orig 2013-03-23 01:48:21 UTC |
2 |
+++ boost/thread/pthread/once.hpp |
3 |
@@ -42,7 +42,7 @@ namespace boost |
4 |
} |
5 |
|
6 |
#ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11 |
7 |
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES |
8 |
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) |
9 |
template<typename Function, class ...ArgTypes> |
10 |
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args); |
11 |
#else |
12 |
@@ -65,7 +65,7 @@ namespace boost |
13 |
private: |
14 |
volatile thread_detail::uintmax_atomic_t epoch; |
15 |
|
16 |
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES |
17 |
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) |
18 |
template<typename Function, class ...ArgTypes> |
19 |
friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args); |
20 |
#else |
21 |
@@ -118,7 +118,7 @@ namespace boost |
22 |
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html |
23 |
|
24 |
|
25 |
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES |
26 |
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) |
27 |
|
28 |
|
29 |
template<typename Function, class ...ArgTypes> |