I have a nested class inside a template class and wish to implement its constructor outside of the scope. However, I get the following error:
expected unqualified-id before ')' token
template<class T>
class mainClass {
private:
class nestedClass {
public:
nestedClass();
};
};
template<class T>
typename mainClass<T>::nestedClass::nestedClass(){
// code here
}