I did intent it the ways it was.

The idea was: 

1. Why the inherited class isn't a friend of master class as a default. I see 
that it is not (by standard), but is there a rationale to make standard such?

2. Why the class is friend of itself, by default (as it cannot be revoked, I 
guess). This is by standard, too, but is there a rationale behind?

3. Why 1) and 2) are different? is the main point. The inherited class should 
be (from my feeling) be an extension of base class, with similar rights, but 
that seems not to be the case.

I have a real-case where a derived-class object is trying to modify another 
object of reference to base class, and it cannot access protected members.
Similar code in base class works fine.

Topi


Reply via email to