Skip to content

Commit

Permalink
Improved strand type.
Browse files Browse the repository at this point in the history
Wrapped by any_io_executor.
  • Loading branch information
redboltz committed Dec 29, 2023
1 parent c7a5326 commit ef6e4d5
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 53 deletions.
4 changes: 2 additions & 2 deletions include/async_mqtt/broker/endpoint_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,22 @@ class epsp_wrap {
);
}

#if 0
decltype(auto) strand() const {
return visit(
[&](auto& ep) -> decltype(auto) {
return ep.strand();
}
);
}

decltype(auto) strand() {
return visit(
[&](auto& ep) -> decltype(auto) {
return ep.strand();
}
);
}
#endif

// async functions

template <typename CompletionToken>
Expand Down
Loading

0 comments on commit ef6e4d5

Please sign in to comment.