Multiple Unnamed Nested Classes

class grphD::App
{
    ...

    protected:
        class 
        {
            ...
        } console_handler;

        class
        {
            ...
        } grid;
};

How can I access App::console_handler inside App::grid functions without having console_handler static and keeping console_handler an object of an anonymous class?

Source: StackOverflow C++

LEAVE A COMMENT