The following code cannot reference:
With the following error:
/tmp/cc8gyaZM.o: In function `std::atomic<A>::store(A, std::memory_order)': dryn.cpp: (.text._ZNSt6atomicI1AE5storeES0_St12memory_order[_ZNSt6atomicI1AE5storeES0_St12memory_order]+0x3e): undefined reference to `__atomic_store_16'
If I replaced unsigned long-s with anything that matches the size of an int, that is just fine. Using g ++ 4.7.2. Do you have an idea why?
Compiled with command:
g++ dryn.cpp --std=c++11
c ++ c ++ 11 stdatomic
user2026095
source share