Using std/boost make_shared for creating shared pointers

Fixed boost::function nulling issue
This commit is contained in:
Dmitry Novikov committed 2014-10-08 16:11:46 +04:00
1 parent d7a7112c8b
commit f7aeeaaa30
23 files changed
+64 -63

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ public:
context_ptr on_tls_init(websocketpp::connection_hdl) {
m_tls_init = std::chrono::high_resolution_clock::now();
context_ptr ctx(new boost::asio::ssl::context(boost::asio::ssl::context::tlsv1));
context_ptr ctx = websocketpp::lib::make_shared<boost::asio::ssl::context>(boost::asio::ssl::context::tlsv1);
try {
ctx->set_options(boost::asio::ssl::context::default_workarounds |