prog.cpp: In function ‘int main()’:
prog.cpp:15:59: error: type/value mismatch at argument 3 in template parameter list for ‘template<class C, class T, T C::* v> struct getPointerType’
cout << typeid(getPointerType<Test, int, decltype(member)>::type) << std::endl;
^
prog.cpp:15:59: error: expected a constant of type ‘T C::*’, got ‘int Test::*’