I have a class template in myclass.hpp:
template<class T, class P>
class myclass
{
....
};
In my main.cc I create an object of the class:
myclass<int, double> mc;
otherfunc<myclass>(mc);
In some other header file header1.hpp:
template<class MyClass>
void otherfunc(MyClass const &mc)
{
/* Access through 'mc' the underlying template parameters T and P*/
}
How can I access the template parameter T and P in header1.hpp?