I encounter this compiler error
function std::atomic::is_lock_free() const: error: undefined reference to '__atomic_is_lock_free'
when compiling code like below using gcc 4.7.2 on linux.
struct S {
int a;
int b;
};
std::atomic<S> s;
cout << s.is_lock_free() << endl;
` on user-defined POD types standard or a GCC extension? [cppreference](http://en.cppreference.com/w/cpp/atomic/atomic) only says that "full specializations" define atomic types and that "the following full specializations are provided"– Stephen Lin Mar 04 '13 at 14:51