Skip to content

Commit

Permalink
Fix make_shared using the wrong strand type
Browse files Browse the repository at this point in the history
Fix compilation with standalone ASIO (zaphoyd#462), where asio::strand and asio::io_service::strand are separate types.
This is the correct type, as m_strand is a ``lib::shared_ptr<lib::asio::io_service::strand>``
  • Loading branch information
Meoo committed Nov 24, 2015
1 parent c5510d6 commit 5b99fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocketpp/transport/asio/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class connection : public config::socket_type::socket_con_type {
m_io_service = io_service;

if (config::enable_multithreading) {
m_strand = lib::make_shared<lib::asio::strand>(
m_strand = lib::make_shared<lib::asio::io_service::strand>(
lib::ref(*io_service));

m_async_read_handler = m_strand->wrap(lib::bind(
Expand Down

0 comments on commit 5b99fee

Please sign in to comment.