|
楼主 |
发表于 2006-3-8 17:55:02
|
显示全部楼层
but it seems that this is not true
consider the following example
[PHP]
class A
{
public:
A();
class AInner
{
public:
AInner();
void AAccessor();
};
private:
int ToBeAccessed;
};
void A::AInner::AAccessor()
{
ToBeAccessed += 1;
}
[/PHP]
when the above code is compiled, an error is returned by compiler:
error: ToBeAccessed is not a member of A::AInner |
|