I have the following nested template
class A { template <typename T> class B { template <typename U> void foo(U arg); }; };
I am trying to define a nested template as follows:
template <typename T, typename U> void A::B<T>::foo(U arg) {...}
But I get the error declaration is incompatible with function template . What is the legal syntax for this?
mchen
source share