Skip to content

Commit

Permalink
Fix deduction of the default immediate executor type.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Jun 26, 2024
1 parent f86f3e8 commit e5cbafb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asio/include/asio/associated_immediate_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ struct has_immediate_executor_type<T,
template <typename E, typename = void, typename = void>
struct default_immediate_executor
{
typedef require_result_t<E, execution::blocking_t::never_t> type;
typedef decay_t<require_result_t<E, execution::blocking_t::never_t>> type;

static type get(const E& e) noexcept
static auto get(const E& e) noexcept
-> decltype(asio::require(e, execution::blocking.never))
{
return asio::require(e, execution::blocking.never);
}
Expand Down

0 comments on commit e5cbafb

Please sign in to comment.