Solve ABA concurrency issue using C++ prior to 20

705 Views Asked by At

At CppCon 2014, Herb Sutter described a neat solution to the ABA problem using atomic shared ptr. A summary of this solution can be found at the bottom of this article. However, the partial specialization of atomic on shared_ptr is a feature of the incoming C++20 (see here). Is there a way to solve the problem elegantly using C++14?

0

There are 0 best solutions below