I've got a parent class, child class and inside this child class I've defined some struct. Within this struct I'd like to call parent method. Is it possible?
class Parent
{
public:
    int foo(int x);
}
class Child : public Parent
{
public:
    struct ChildStruct {
        int x;
        int bar(int y) {
            return GET_CLASS_CHILD->foo(this->x + y);
        }
    };
}
Is something like this possible in C++? Then how to achieve it?
 
    