Let's say we got class A and method B... The correct Syntax is return type A::B() {...}
Now imagine, we have a class B inside the class A and plus method C that has the inner class B (proxy class due to [ ][ ] operator) as a "return type". How do I do that?
A::B A::B::C() {}
does not work neither does B A::B::C() {}
Plus I'd like to have it in .cpp
and .h
file.