S
Stuart Redmann
Hello newsgroup,
I try to take the address of a member template function, but I can't
succeed. My copy of Bjarne Stroupstrup says nothing against this, so I
guess that what I want to achive is not beyond the possibilities of C++,
but beyond the abilities of my compiler (Visual C++ 6.0). Following code
won't compile (error C2039: 'SomeFunc' : Is no element of '`global
namespace''). Any suggestions would be highly appreciated.
class TestClass
{
public:
template<int t_ID>
void SomeFunc ()
{}
};
void (TestClass::*pFuncPtr) () = TestClass<0>::SomeFunc;
Thanks in advance,
Stuart
I try to take the address of a member template function, but I can't
succeed. My copy of Bjarne Stroupstrup says nothing against this, so I
guess that what I want to achive is not beyond the possibilities of C++,
but beyond the abilities of my compiler (Visual C++ 6.0). Following code
won't compile (error C2039: 'SomeFunc' : Is no element of '`global
namespace''). Any suggestions would be highly appreciated.
class TestClass
{
public:
template<int t_ID>
void SomeFunc ()
{}
};
void (TestClass::*pFuncPtr) () = TestClass<0>::SomeFunc;
Thanks in advance,
Stuart