diff options
Diffstat (limited to 'src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp')
-rw-r--r-- | src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp b/src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp index 460fbd6c03e..af242afd500 100644 --- a/src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp +++ b/src/third_party/asio-master/asio/include/asio/detail/work_dispatcher.hpp @@ -2,7 +2,7 @@ // detail/work_dispatcher.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -52,10 +52,10 @@ public: void operator()() { - typename associated_executor<Handler>::type ex(work_.get_executor()); typename associated_allocator<Handler>::type alloc( (get_associated_allocator)(handler_)); - ex.dispatch(ASIO_MOVE_CAST(Handler)(handler_), alloc); + work_.get_executor().dispatch( + ASIO_MOVE_CAST(Handler)(handler_), alloc); work_.reset(); } |