enable_shared_from_this
這個宏的介紹
http://stackoverflow.com/questions/712279/what-is-the-usefulness-of-enable-shared-from-this
在編寫的時候遇到參數imcomplete type錯誤提示
需要添加頭檔案:
#include <boost/enable_shared_from_this.hpp>
直接引用boost/smart_ptr.hpp是不行滴
然後就是
undefined reference to `GetAcceptExSockaddrs@32'|這個錯誤
需要添加
libwsock32.a
這個庫,為什麼?