Skip to content

Commit

Permalink
Merge pull request #132 from cbodley/wip-exec-forward
Browse files Browse the repository at this point in the history
connection: async_exec forwards completion token
  • Loading branch information
mzimbres authored Aug 2, 2023
2 parents 7d16259 + 9ebcc54 commit 4f6f8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/redis/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ class basic_connection {
async_exec(
request const& req,
Response& resp = ignore,
CompletionToken token = CompletionToken{})
CompletionToken&& token = CompletionToken{})
{
return impl_.async_exec(req, resp, token);
return impl_.async_exec(req, resp, std::forward<CompletionToken>(token));
}

/** @brief Cancel operations.
Expand Down

0 comments on commit 4f6f8b4

Please sign in to comment.