[HTML] Add new C++ access check rules to changes.html (PR 14949)

Paolo Bonzini bonzini@gnu.org
Fri Jun 11 12:59:00 GMT 2004


>>!      &A::pub_func;   // OK, pub_func is accessible through A
>>!      &A::prot_func;  // error, cannot access prot_func through A
>>!      &A::priv_func;  // error, cannot access prot_func through A
> I am no expert but isn't there a typo -------------^^^^ here?

Yes, there is...

>>!
>>!      &B::pub_func;   // OK, pub_func is accessible through B
>>!      &B::prot_func;  // OK, can access prot_func through B (within B)
>>!      &B::priv_func;  // error, cannot access prot_func through B
                                  ...and here as well ^^^^

Ciao,

Paolo



More information about the Gcc-patches mailing list