摘要:
In fact, Ptr alone can accomplish the task mentioned below.Implementation see Ptr.h, main2.cpp. In C++11, we also have a better choice: std::shared_pt... 阅读全文
摘要:
In this case, Box need access to Cup.func, AND Cup need access to Box.func, both of which are private because I don't want any other class to have acc... 阅读全文