Just had a quick question about defining functions with nested classes.
Given the example below:
class OuterClass {
class InnerClass{
public:
void someMethod();
};
InnerClass someFunction();
};
I understand for the definition of someMethod in a .cpp you could do:
void OuterClass::InnerClass::someMethod() {
// stuff}
But how would the definition for InnerClass someFunction go?
InnerClass OuterClass::SomeFunction() { ...}
– kebs Feb 12 '17 at 22:50someMethod()
and the othersomeFunction()
is misleading, – kebs Feb 12 '17 at 22:56