cameron314 / concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
Other
9.53k stars 1.66k forks source link

Proper MSVC warning fix and note #296

Closed MathiasMagnus closed 2 years ago

MathiasMagnus commented 2 years ago

The previous fix to the annoying MSVC warning did not work, as it still triggered when some code instantiated this function. I reported the issue on the MSVC forums but also added the not-too-noisy fix. Once support for faulty MSVC compilers is dropped, the extra parens can safely be removed.