class Outer
{
class Inner
{
...
}
};
class Other
{
...
friend class Outer; // OK
friend class Outer::Inner; // Wrongo (Inner not visible in Other scope as a type within Outer.)
};
How in C++ can class Inner also be made friend of class Other? Perhaps friendship should automatically be extended to nested classes of outer class??