Skip to content

Commit

Permalink
Fix any_io_executor with ASIO_USE_TS_EXECUTOR_AS_DEFAULT.
Browse files Browse the repository at this point in the history
Commit bae9bcf has overlooked the case of `any_io_executor` being a
typedef to `executor` (when `ASIO_USE_TS_EXECUTOR_AS_DEFAULT` is
defined) instead of a proper class, resulting in compilation errors.
  • Loading branch information
tanzislam authored and chriskohlhoff committed Nov 16, 2021
1 parent 4950d6d commit 689cf69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asio/include/asio/any_io_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ struct prefer_member<any_io_executor, Prop> :

#include "asio/detail/pop_options.hpp"

#if defined(ASIO_HEADER_ONLY)
#if defined(ASIO_HEADER_ONLY) \
&& !defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
# include "asio/impl/any_io_executor.ipp"
#endif // defined(ASIO_HEADER_ONLY)
// && !defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)

#endif // ASIO_ANY_IO_EXECUTOR_HPP

0 comments on commit 689cf69

Please sign in to comment.