freebsd-ports/devel/boost-libs/files/patch-boost_thread_pthread_once__atomic.hpp
John Marino 5a1d3b3dd0 devel/boost-libs: Fix bad c++11 so it builds with gcc5
PR:		197594
Submitted by:	marino
Approved by:	maintainer timeout
2015-03-11 18:43:21 +00:00

11 lines
463 B
C++

--- boost/thread/pthread/once_atomic.hpp.orig 2013-03-23 01:48:21 UTC
+++ boost/thread/pthread/once_atomic.hpp
@@ -115,7 +115,7 @@ namespace boost
#endif
-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template<typename Function, class ...ArgTypes>
inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)