Boost logo

Boost :

Subject: Re: [boost] [atomic] (op)_and_test naming
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2018-01-28 18:00:33


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/b24cea0af1b0d477f202d0539bdacfec543d0058

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk