28 Jan
2018
28 Jan
'18
6 p.m.
Thanks everyone who participated in the discussion. I have committed a change to the develop branch that flips the (op)_and_test results to the opposite: https://github.com/boostorg/atomic/commit/b24cea0af1b0d477f202d0539bdacfec54... Hopefully, it will be released in Boost 1.67. This is a breaking change. Users upgrading from Boost 1.66 can define BOOST_ATOMIC_HIGHLIGHT_OP_AND_TEST macro when building their code. This will generate warnings on each use of the changed (op)_and_test function so that it is easier to locate the affected code. To update your code you typically need to add or remove negation of the operation result. In due time I will add a note in the 1.67 release notes.