prog.cpp: In member function 'void clearable<T>::clear()':
prog.cpp:9:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
*((T*)this) = {};
^
prog.cpp: In function 'int main()':
prog.cpp:25:29: error: 'printf' was not declared in this scope
printf("%d", _test.a);
^
prog.cpp: In instantiation of 'void clearable<T>::clear() [with T = test]':
prog.cpp:23:21: required from here
prog.cpp:9:25: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
*((T*)this) = {};
^