Use this
in constructor
1、在Access-outside-of-object-lifetime\Multi-thread
章节的"在constructor中register callback/listener/observer"段中,记录了我的"Use this
in constructor"的开发经历,正是通过这个例子,我开始思考: "Use this
in constructor"。
2、Google: pass this in constructor c++:
stackoverflow Passing “this” to a function from within a constructor?