archrelease: copy trunk to community-any
[arch-community.git] / frogatto / trunk / frogatto-boost-1.70.patch
blob3a47530a4da6524f14ac48edcbc449b4d5e32e0f
1 rc/http_server.cpp:34:46: error: no member named 'get_io_service' in
2 'boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::executor>'
3 socket_ptr socket(new tcp::socket(acceptor_.get_io_service()));
4 ~~~~~~~~~ ^
5 src/server.cpp:40:47: error: no member named 'get_io_service' in
6 'boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::executor>'
7 socket_ptr socket(new tcp::socket(acceptor_.get_io_service()));
8 ~~~~~~~~~ ^
10 --- src/http_server.cpp.orig 2012-12-08 22:36:13 UTC
11 +++ src/http_server.cpp
12 @@ -31,7 +31,11 @@ web_server::web_server(boost::asio::io_service& io_ser
14 void web_server::start_accept()
16 +#if BOOST_VERSION < 107000
17 socket_ptr socket(new tcp::socket(acceptor_.get_io_service()));
18 +#else
19 + socket_ptr socket(new tcp::socket(acceptor_.get_executor()));
20 +#endif
21 acceptor_.async_accept(*socket, boost::bind(&web_server::handle_accept, this, socket, boost::asio::placeholders::error));
24 --- src/server.cpp.orig 2012-12-08 22:36:13 UTC
25 +++ src/server.cpp
26 @@ -37,7 +37,11 @@ class server (public)
27 private:
28 void start_accept()
30 +#if BOOST_VERSION < 107000
31 socket_ptr socket(new tcp::socket(acceptor_.get_io_service()));
32 +#else
33 + socket_ptr socket(new tcp::socket(acceptor_.get_executor()));
34 +#endif
35 acceptor_.async_accept(*socket, boost::bind(&server::handle_accept, this, socket, boost::asio::placeholders::error));