diff options
Diffstat (limited to 'boost/process/detail/windows/on_exit.hpp')
-rw-r--r-- | boost/process/detail/windows/on_exit.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/process/detail/windows/on_exit.hpp b/boost/process/detail/windows/on_exit.hpp index 92517cb83c..227485c489 100644 --- a/boost/process/detail/windows/on_exit.hpp +++ b/boost/process/detail/windows/on_exit.hpp @@ -25,10 +25,10 @@ struct on_exit_ : boost::process::detail::windows::async_handler template<typename Executor> std::function<void(int, const std::error_code&)> on_exit_handler(Executor&) { - auto handler = this->handler; - return [handler](int exit_code, const std::error_code & ec) + auto handler_ = this->handler; + return [handler_](int exit_code, const std::error_code & ec) { - handler(static_cast<int>(exit_code), ec); + handler_(static_cast<int>(exit_code), ec); }; } |