error: ‘function’ in namespace ‘boost’ does not name a type 解決方法

error: ‘function’ in namespace ‘boost’ does not name a type typedef boost::function<void (const TcpConnectionPtr& conn)> WebSocketConnectedCallback; 添加 #include <boost/function.hpp> 頭文件包含進來。spa
相關文章
相關標籤/搜索