Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
boost::make_shared takes const ref, need to wrap non-const ref in boo…
Browse files Browse the repository at this point in the history
…st::ref
  • Loading branch information
amidvidy committed Oct 8, 2014
1 parent ec154f1 commit c555244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-otpc-conn.hpp
Expand Up @@ -31,7 +31,7 @@ class connection {
* @return pointer to newly allocated object
*/
static pointer create(ba::io_service& io_service) {
return boost::make_shared<connection>(io_service, hide_me());
return boost::make_shared<connection>(boost::ref(io_service), hide_me());
}

/**
Expand Down

0 comments on commit c555244

Please sign in to comment.