Suppose I have a header file as follows:
template <typename T>
class Foo
{
template <typename U>
int bar();
template <typename U>
int foobar();
};
I want to explicitly instantiate this class and all its methods to work with int, float and double types. Do I have to manually type out each instantiation or is there a better way to do this?