Using std/boost make_shared for creating shared pointers
Fixed boost::function nulling issue
This commit is contained in:
1 parent
d7a7112c8b
commit
f7aeeaaa30
23 files changed
+64
-63
No files matched your search
@@ -48,7 +48,7 @@ public:
|
||||
m_endpoint.init_asio();
|
||||
m_endpoint.start_perpetual();
|
||||
|
||||
m_thread.reset(new websocketpp::lib::thread(&client::run, &m_endpoint));
|
||||
m_thread = websocketpp::lib::make_shared<websocketpp::lib::thread>(&client::run, &m_endpoint);
|
||||
}
|
||||
private:
|
||||
client m_endpoint;
|
||||
|
||||
Reference in new issue
Block a user