template <typename T>
class C {
public:
struct S {
};
S return_s();
};
template<typename T>
C<T>::S C<T>::return_s() {}
If i try to compile this it will return: expected constructor, destructor, or type conversion before "C"
What do you recommend in order to deal with this situation? of course that it can be done if i implement the function inside the class, but i cant implement it outside...