Skip to content

Commit

Permalink
co_composed.hpp: Guard use of async_operation
Browse files Browse the repository at this point in the history
`async_operation` is defined only when concepts are in use.
When ASIO_DISABLE_CONCEPTS is defined, bare `typename`
should be used instead.

We can't use ASIO_ASYNC_OPERATION macros here, as it currently
does not have a no-argument form.

Fixes: chriskohlhoff#1547
  • Loading branch information
iv-m committed Nov 5, 2024
1 parent bb85475 commit a8db5f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asio/include/asio/co_composed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,11 @@ class co_composed_promise
throw;
}

#ifdef ASIO_DISABLE_CONCEPTS
template <typename Op>
#else
template <async_operation Op>
#endif
auto await_transform(Op&& op
#if defined(ASIO_ENABLE_HANDLER_TRACKING)
# if defined(ASIO_HAS_SOURCE_LOCATION)
Expand Down

0 comments on commit a8db5f3

Please sign in to comment.