No longer need to forward declare the io_context implementation.
This commit is contained in:
parent
12b3c601c9
commit
ad7209706d
@ -27,10 +27,10 @@
|
||||
|
||||
#include "asio/detail/push_options.hpp"
|
||||
|
||||
#if !defined(GENERATING_DOCUMENTATION)
|
||||
|
||||
namespace asio {
|
||||
|
||||
#if !defined(GENERATING_DOCUMENTATION)
|
||||
|
||||
template <typename Service>
|
||||
inline Service& use_service(io_context& ioc)
|
||||
{
|
||||
@ -48,22 +48,8 @@ inline detail::io_context_impl& use_service<detail::io_context_impl>(
|
||||
return ioc.impl_;
|
||||
}
|
||||
|
||||
} // namespace asio
|
||||
|
||||
#endif // !defined(GENERATING_DOCUMENTATION)
|
||||
|
||||
#include "asio/detail/pop_options.hpp"
|
||||
|
||||
#if defined(ASIO_HAS_IOCP)
|
||||
# include "asio/detail/win_iocp_io_context.hpp"
|
||||
#else
|
||||
# include "asio/detail/scheduler.hpp"
|
||||
#endif
|
||||
|
||||
#include "asio/detail/push_options.hpp"
|
||||
|
||||
namespace asio {
|
||||
|
||||
inline io_context::executor_type
|
||||
io_context::get_executor() ASIO_NOEXCEPT
|
||||
{
|
||||
|
@ -36,16 +36,22 @@
|
||||
# include "asio/detail/signal_init.hpp"
|
||||
#endif
|
||||
|
||||
#if defined(ASIO_HAS_IOCP)
|
||||
# include "asio/detail/win_iocp_io_context.hpp"
|
||||
#else
|
||||
# include "asio/detail/scheduler.hpp"
|
||||
#endif
|
||||
|
||||
#include "asio/detail/push_options.hpp"
|
||||
|
||||
namespace asio {
|
||||
|
||||
namespace detail {
|
||||
#if defined(ASIO_HAS_IOCP)
|
||||
typedef class win_iocp_io_context io_context_impl;
|
||||
typedef win_iocp_io_context io_context_impl;
|
||||
class win_iocp_overlapped_ptr;
|
||||
#else
|
||||
typedef class scheduler io_context_impl;
|
||||
typedef scheduler io_context_impl;
|
||||
#endif
|
||||
|
||||
struct io_context_bits
|
||||
|
Loading…
Reference in New Issue
Block a user