B
Brian Riis
Given:
template <typename T1, typename T2>
class A
{
public:
template <int I>
void B();
};
T1 and T2 are known, and I know which version of B I need. Say, e.g.
A<std::string, int>::B<1>()
I need to pass this function to a function.
My thought was that
f(&A<std::string, int>::B<1>);
should be possible, but g++ complains that the function argument is an
"<unknown type>".
So, is it possible to get the address of that function? If so, how? Or
is g++ misguided here?
Any help appreciated.
template <typename T1, typename T2>
class A
{
public:
template <int I>
void B();
};
T1 and T2 are known, and I know which version of B I need. Say, e.g.
A<std::string, int>::B<1>()
I need to pass this function to a function.
My thought was that
f(&A<std::string, int>::B<1>);
should be possible, but g++ complains that the function argument is an
"<unknown type>".
So, is it possible to get the address of that function? If so, how? Or
is g++ misguided here?
Any help appreciated.