prog.cpp:22:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
template<typename... A>
^
prog.cpp:23:23: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
static T* print(A... a)
^
prog.cpp: In function ‘int main()’:
prog.cpp:53:2: error: ‘weak_ptr’ is not a member of ‘std’
std::weak_ptr<int> i;
^
prog.cpp:53:16: error: expected primary-expression before ‘int’
std::weak_ptr<int> i;
^
prog.cpp:53:16: error: expected ‘;’ before ‘int’
prog.cpp:54:10: warning: unused variable ‘a’ [-Wunused-variable]
AdevS * a = AdevS::print(1);
^