Initialise destination's target when copying/moving from an empty any_executor.

This commit is contained in:
Christopher Kohlhoff 2020-07-03 12:52:16 +10:00
parent d80175ab62
commit 1b3229507f

View File

@ -606,12 +606,14 @@ protected:
{
}
static void copy_void(any_executor_base&, const any_executor_base&)
static void copy_void(any_executor_base& ex1, const any_executor_base&)
{
ex1.target_ = 0;
}
static void move_void(any_executor_base&, any_executor_base&)
static void move_void(any_executor_base& ex1, any_executor_base&)
{
ex1.target_ = 0;
}
static const void* target_void(const any_executor_base&)