rcu_ptr icon indicating copy to clipboard operation
rcu_ptr copied to clipboard

Use std::atomic<std::shared_ptr> when applicable

Open MHebes opened this issue 3 years ago • 0 comments

std::atomic has been specialized for std::shared_ptr in C++20.

Using the std::atomic_* function instead causes a compiler warning at least on MSVC for C++ 20.

Theoretically one could choose which ASP to use based on compiler support. I don't know the right #ifdefs to check off the top of my head but I'm sure they exist!

MHebes avatar Feb 22 '22 22:02 MHebes