Fix handler tracking for support for the new strand.
diff --git a/asio/include/asio/detail/impl/strand_executor_service.hpp b/asio/include/asio/detail/impl/strand_executor_service.hpp index 20cc24c..e0b3968 100644 --- a/asio/include/asio/detail/impl/strand_executor_service.hpp +++ b/asio/include/asio/detail/impl/strand_executor_service.hpp
@@ -121,7 +121,7 @@ p.v = p.a.allocate(1); p.p = new (p.v) op(tmp, allocator); - ASIO_HANDLER_CREATION((p.p, "strand_executor", this, "dispatch")); + ASIO_HANDLER_CREATION((p.p, "strand_executor", impl.get(), "dispatch")); // Add the function to the strand and schedule the strand if required. bool first = enqueue(impl, p.p); @@ -149,7 +149,7 @@ p.v = p.a.allocate(1); p.p = new (p.v) op(tmp, allocator); - ASIO_HANDLER_CREATION((p.p, "strand_executor", this, "post")); + ASIO_HANDLER_CREATION((p.p, "strand_executor", impl.get(), "post")); // Add the function to the strand and schedule the strand if required. bool first = enqueue(impl, p.p); @@ -177,7 +177,7 @@ p.v = p.a.allocate(1); p.p = new (p.v) op(tmp, allocator); - ASIO_HANDLER_CREATION((p.p, "strand_executor", this, "defer")); + ASIO_HANDLER_CREATION((p.p, "strand_executor", impl.get(), "defer")); // Add the function to the strand and schedule the strand if required. bool first = enqueue(impl, p.p);