How do I create a nested template struct implementration? For example, if I have:
foo.h:
template<class T>
class foo
{
template<class U>
struct bar
{
U u;
bar(U u);
...
};
...
};
and
foo.cpp
include "foo.h"
...
template<class T, class U>
foo<T>::bar<U>::bar(U u) : u(u) { }
...
I get different syntax errors such as "missing ';'", etc. What am I doing wrong?