enable_shared_from_this

这个宏的介绍

在编写的时候遇到参数imcomplete type错误提示

需要添加头文件:

#include <boost/enable_shared_from_this.hpp>

直接引用boost/smart_ptr.hpp是不行滴

然后就是

undefined reference to `GetAcceptExSockaddrs@32'|这个错误

需要添加

libwsock32.a

这个库,为什么?