摘要:
#ifndef TEST_OBSERVER_SAFE#define TEST_OBSERVER_SAFE#include #include #include #include #include #include #include namespace TestObserver{ class Observable; class Observer : public boost::enable_shared_from_this { public: Observer() {} virtual ~Observer() {printf("%p is destructed!\n", thi 阅读全文