|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79616 - trunk/boost/atomic/detail
From: hcb_at_[hidden]
Date: 2012-07-20 04:17:49
Author: helge.bahmann
Date: 2012-07-20 04:17:47 EDT (Fri, 20 Jul 2012)
New Revision: 79616
URL: http://svn.boost.org/trac/boost/changeset/79616
Log:
Delete arithmetic methods for atomic<void *>
Delete definitions for fetch_add and fetch_sub on void * pointers -- clang
already treats their definition as erroneous.
Reported-by: Anand TM <anand_tm_at_[hidden]>
Text files modified:
trunk/boost/atomic/detail/cas32weak.hpp | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
Modified: trunk/boost/atomic/detail/cas32weak.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas32weak.hpp (original)
+++ trunk/boost/atomic/detail/cas32weak.hpp 2012-07-20 04:17:47 EDT (Fri, 20 Jul 2012)
@@ -490,24 +490,6 @@
}
}
- value_type
- fetch_add(difference_type v, memory_order order = memory_order_seq_cst) volatile
- {
- value_type original = load(memory_order_relaxed);
- do {
- } while (!compare_exchange_weak(original, original + v, order, memory_order_relaxed));
- return original;
- }
-
- value_type
- fetch_sub(difference_type v, memory_order order = memory_order_seq_cst) volatile
- {
- value_type original = load(memory_order_relaxed);
- do {
- } while (!compare_exchange_weak(original, original - v, order, memory_order_relaxed));
- return original;
- }
-
bool
is_lock_free(void) const volatile
{
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