Fixes for gcc-4.8

This commit is contained in:
Vinnie Falco
2017-07-05 12:04:10 -07:00
parent abdd89fde8
commit 37461a1c4c
4 changed files with 9 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ private:
void
read_request()
{
auto self{shared_from_this()};
auto self = shared_from_this();
http::async_read(
socket_,
@@ -160,7 +160,7 @@ private:
void
write_response()
{
auto self{shared_from_this()};
auto self = shared_from_this();
response_.set(http::field::content_length, response_.body.size());
@@ -178,7 +178,7 @@ private:
void
check_deadline()
{
auto self{shared_from_this()};
auto self = shared_from_this();
deadline_.async_wait(
[self](beast::error_code ec)