commit | 2898a5e0fab3b6152a04090324df17fa89fec608 | [log] [tgz] |
---|---|---|
author | Christopher Kohlhoff <chris@kohlhoff.com> | Tue May 26 08:15:57 2020 +1000 |
committer | Christopher Kohlhoff <chris@kohlhoff.com> | Tue May 26 08:15:57 2020 +1000 |
tree | fb2c612edfd20107f03e142a34839f7eeebe4aea | |
parent | 3c63a53921350e4809d4471df549969825349777 [diff] |
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));