Talk:cpp/types/add pointer
From cppreference.com
[edit] Possible implementation looks surprisingly complex — Why?
Why is the "possible implementation" so complex? I thought this would also do:
template<class T> struct add_pointer { typedef T* type; };