I have the following line in my code:
#include <atomic>
std::atomic_uint32_t tmp;
However, I am getting the following compilation error:
'atomic_uint32_t' in namespace 'std' does not name a type.
I included <cstdint>
but the error persists.
My GCC version: 5.4.0, Ubuntu 14.04 (64-bit)
As per Danh's comment, I used
std::atomic<std::uint32_t>
and voila, it is working now. Thanks Danh.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With