Using std/boost make_shared for creating shared pointers

Fixed boost::function nulling issue
This commit is contained in:
Dmitry Novikov
2014-10-08 15:49:13 +04:00
parent d7a7112c8b
commit f7aeeaaa30
23 changed files with 64 additions and 63 deletions

View File

@@ -68,7 +68,7 @@ int main() {
typedef websocketpp::message_buffer::alloc::con_msg_manager<message_type>
con_msg_man_type;
con_msg_man_type::ptr manager(new con_msg_man_type());
con_msg_man_type::ptr manager = websocketpp::lib::make_shared<con_msg_man_type>();
size_t foo = 1024;