I know how to write something up but i am sure there is a standard way of passing in something like func<TheType*>() and using template magic to extract TheType for use in your code (maybe TheType::SomeStaticCall).
What is the standard way/function to get that type when a ptr is passed in?
I think you want to remove the pointer-ness from the type argument to the function. If so, then here is how you can do this,
where
remove_pointeris defined as:In C++0x,
remove_pointeris defined in<type_traits>header file. But in C++03, you’ve to define it yourself.