From eb13eed01959ef368935329c7288ca06085d6f09 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 30 Jan 2018 20:29:08 +0300 Subject: [PATCH] Added a note about the upcoming breaking change in 1.67 in (op)_and_test results. --- doc/atomic.qbk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/atomic.qbk b/doc/atomic.qbk index 62aeb77..6c509ca 100644 --- a/doc/atomic.qbk +++ b/doc/atomic.qbk @@ -707,6 +707,10 @@ Additionally, as a [*Boost.Atomic] extension, the following operations are also ] ] +[note In Boost.Atomic 1.67 and later the [^['op]_and_test] operations will return the opposite value (i.e. `true` if the result is non-zero). This was changed +for consistency with other operations in Boost.Atomic, as well as with conventions taken in the C++ standard library. Users may prefer to +postpone using these operations until Boost 1.67 to avoid the need to update the code after the upgrade.] + `order` always has `memory_order_seq_cst` as default parameter. The [^opaque_['op]] and [^['op]_and_test] variants of the operations