|
Boost-Commit : |
From: anthony_at_[hidden]
Date: 2008-07-21 06:04:26
Author: anthonyw
Date: 2008-07-21 06:04:26 EDT (Mon, 21 Jul 2008)
New Revision: 47652
URL: http://svn.boost.org/trac/boost/changeset/47652
Log:
BOOST_NO_SFINAE isn't enough to identify compilers that can't auto-detect mutexes, so create a new macro for that, and add IBM and Sun compilers to list
Text files modified:
trunk/boost/thread/locks.hpp | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2008-07-21 06:04:26 EDT (Mon, 21 Jul 2008)
@@ -10,6 +10,7 @@
#include <algorithm>
#include <iterator>
#include <boost/thread/thread_time.hpp>
+#include <boost/detail/workaround.hpp>
#include <boost/config/abi_prefix.hpp>
@@ -17,7 +18,13 @@
{
struct xtime;
-#ifndef BOOST_NO_SFINAE
+#if defined(BOOST_NO_SFINAE) || \
+ BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \
+ BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
+#define BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
+#endif
+
+#ifndef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
namespace detail
{
template<typename T>
@@ -113,7 +120,7 @@
class try_lock_wrapper;
}
-#ifdef BOOST_NO_SFINAE
+#ifdef BOOST_THREAD_NO_AUTO_DETECT_MUTEX_TYPES
template<typename T>
struct is_mutex_type<unique_lock<T> >
{
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