diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-21 23:08:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-21 23:08:44 +0100 |
| commit | e669b562937786bf5b771c927cc03a4074b01be8 (patch) | |
| tree | 769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/lib | |
| parent | 94cee20beaa2d557c3c47960d8a65501c37410c2 (diff) | |
Revert "Revert make_shared<> change which breaks build on some platforms; don't know why yet."
This reverts commit eb3f28f4e614455a4d070d5fa2caaa24b9d9139c.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/json_server.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index 0006201e6..6e53f9819 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -27,6 +27,7 @@ #include "util.h" #include "film.h" #include "transcode_job.h" +#include <boost/make_shared.hpp> #include <iostream> using std::string; @@ -35,6 +36,7 @@ using std::map; using std::list; using boost::thread; using boost::shared_ptr; +using boost::make_shared; using boost::dynamic_pointer_cast; using boost::asio::ip::tcp; @@ -61,7 +63,7 @@ try tcp::acceptor a (io_service, tcp::endpoint (tcp::v4 (), port)); while (true) { try { - shared_ptr<tcp::socket> s (new tcp::socket (io_service)); + shared_ptr<tcp::socket> s = make_shared<tcp::socket> (io_service); a.accept (*s); handle (s); } |
