Fixes another compilation issue: make_steady_timer now returns std::unique_ptr
This commit is contained in:
parent
ec27950d68
commit
5d65a5d89b
3 changed files with 6 additions and 6 deletions
|
|
@ -303,7 +303,7 @@ namespace SimpleWeb {
|
|||
return;
|
||||
}
|
||||
|
||||
timer = std::unique_ptr<asio::steady_timer>(new asio::steady_timer(make_steady_timer(*socket, std::chrono::seconds(seconds))));
|
||||
timer = make_steady_timer(*socket, std::chrono::seconds(seconds));
|
||||
std::weak_ptr<Connection> self_weak(this->shared_from_this()); // To avoid keeping Connection instance alive longer than needed
|
||||
timer->async_wait([self_weak](const error_code &ec) {
|
||||
if(!ec) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue