From Dr. Dobbs.
template
struct is_pointer
{ static const bool value = false; };
template
struct is_pointer
{ static const bool value = true; };
You can't do exactly what you want to do. You'll have to use this like:
is_pointer::value
It's not possible to determine this at run time.