2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-30 07:22:09 +00:00
Files
asio/include
Christopher Kohlhoff 619cd04dbf Add converting move construction and assignment to basic_waitable_timer.
This change enables move construction and assignment between different timer
types, provided the executor types are convertible. For example:

  basic_waitable_timer<
      clock_type,
      traits_type,
      io_context::executor_type
    > timer1(my_io_context);

  basic_waitable_timer<
      clock_type,
      traits_type,
      executor // polymorphic wrapper
    > timer2(std::move(timer1));
2020-06-22 20:50:05 +10:00
..