example/cppcon2018 only requires C++11

This commit is contained in:
Vinnie Falco committed 2018-11-26 12:04:35 -08:00
1 parent cf6021a355
commit a5d5c7500a
4 files changed
+39 -38

No files matched your search

+10 -10
View File
@@ -203,11 +203,11 @@ run()
{
// Read a request
http::async_read(socket_, buffer_, req_,
[self = shared_from_this()]
(error_code ec, std::size_t bytes)
{
self->on_read(ec, bytes);
});
std::bind(
&http_session::on_read,
shared_from_this(),
std::placeholders::_1,
std::placeholders::_2));
}
// Report a failure
@@ -341,9 +341,9 @@ on_write(error_code ec, std::size_t, bool close)
// Read another request
http::async_read(socket_, buffer_, req_,
[self = shared_from_this()]
(error_code ec, std::size_t bytes)
{
self->on_read(ec, bytes);
});
std::bind(
&http_session::on_read,
shared_from_this(),
std::placeholders::_1,
std::placeholders::_2));
}