摘要:
使用boost库时,经常会看到如下的类class A:public enable_share_from_this在什么情况下要使类A继承enable_share_from_this?使用场合:当类A被share_ptr管理,且在类A的成员函数里需要把当前类对象作为参数传给其他函数时,就需要传递一个指... 阅读全文
posted @ 2014-06-07 00:13
D.Ritchie
阅读(4869)
评论(0)
推荐(2)
浙公网安备 33010602011771号