#include #include using namespace std; struct Simple{ int a = 0; int b = 0; }; struct WithPointer{ int *a = nullptr; i
You need to compile the program with the -latomic flag on clang and gcc. demo.
-latomic