I have this code:
template <class T> class MyClass { public: template <class U> void foo() { U a; a.invoke(); } };
I want this in this form:
template <class T> class MyClass { public: template <class U> void foo(); }; template <class T> /* ????? */ void MyClass<T>::foo() { U a; a.invoke(); }
How can i do this? What is the correct syntax?
c ++ templates
Michael Dec 27 '11 at 1:27 2011-12-27 01:27
source share