Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84004 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2013-04-21 11:32:17


Author: viboes
Date: 2013-04-21 11:32:16 EDT (Sun, 21 Apr 2013)
New Revision: 84004
URL: http://svn.boost.org/trac/boost/changeset/84004

Log:
Thread: re-apply the change to invoke as it works for gcc but not for msvc.
Text files modified:
   trunk/boost/thread/detail/invoke.hpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/boost/thread/detail/invoke.hpp
==============================================================================
--- trunk/boost/thread/detail/invoke.hpp (original)
+++ trunk/boost/thread/detail/invoke.hpp 2013-04-21 11:32:16 EDT (Sun, 21 Apr 2013)
@@ -200,7 +200,8 @@
 #endif // BOOST_NO_CXX11_VARIADIC_TEMPLATES
 
 #elif ! defined(BOOST_NO_SFINAE_EXPR) && \
- ! defined BOOST_NO_CXX11_HDR_FUNCTIONAL
+ ! defined BOOST_NO_CXX11_HDR_FUNCTIONAL && \
+ defined BOOST_MSVC
 
     template <class Ret, class Fp>
     inline
@@ -229,9 +230,9 @@
 
 #define BOOST_THREAD_PROVIDES_INVOKE_RET
 
-#else // all
+#elif ! defined BOOST_MSVC
 //!!!!! WARNING !!!!! THIS DOESN'T WORKS YET
-//#define BOOST_THREAD_PROVIDES_INVOKE_RET
+#define BOOST_THREAD_PROVIDES_INVOKE_RET
 
 #if ! defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
 


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