$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r85851 - trunk/boost/sync/detail
From: tim_at_[hidden]
Date: 2013-09-23 06:03:44
Author: timblechmann
Date: 2013-09-23 06:03:44 EDT (Mon, 23 Sep 2013)
New Revision: 85851
URL: http://svn.boost.org/trac/boost/changeset/85851
Log:
sync: atomic - detect support for std::atomic
Text files modified: 
   trunk/boost/sync/detail/atomic.hpp |    18 ++++++++++++++++++                      
   1 files changed, 18 insertions(+), 0 deletions(-)
Modified: trunk/boost/sync/detail/atomic.hpp
==============================================================================
--- trunk/boost/sync/detail/atomic.hpp	Mon Sep 23 05:27:55 2013	(r85850)
+++ trunk/boost/sync/detail/atomic.hpp	2013-09-23 06:03:44 EDT (Mon, 23 Sep 2013)	(r85851)
@@ -19,6 +19,22 @@
 namespace sync   {
 namespace detail {
 
+#if BOOST_CLANG
+#if __has_include( <atomic> )
+#define BOOST_SYNC_USE_STD_ATOMIC
+#endif
+#endif
+
+#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1700)
+#define BOOST_SYNC_USE_STD_ATOMIC
+#endif
+
+#if BOOST_GCC
+#if (BOOST_GCC >= 40800) && (__cplusplus >= 201103L)
+#define BOOST_SYNC_USE_STD_ATOMIC
+#endif
+#endif
+
 #ifdef BOOST_SYNC_USE_STD_ATOMIC
 
 using std::atomic;
@@ -55,4 +71,6 @@
 }
 }
 
+#undef BOOST_SYNC_USE_STD_ATOMIC
+
 #endif // BOOST_SYNC_DETAIL_ATOMIC_HPP