你完全可以直接把外部类去掉,可见性效果一样
【 在 wanllow 的大作中提到: 】
: 在Bjarne第三版的书中,1.3节中说明了:A C++ nested class does not have access to an object of the enclosing class.
: 然而在16.2.13中又写到:
: A member class (often called a nested class) can refer to types and static members of its enclosing class. It can only refer to non-static members when it is given an object of the enclosing class to refer to. To avoid getting into the intricacies of bina
: ...................
--
FROM 111.48.114.*