diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/winapp_thread.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/winapp_thread.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/asio/include/asio/detail/winapp_thread.hpp b/3rdparty/asio/include/asio/detail/winapp_thread.hpp index 4d13109bdf0..512aa231e26 100644 --- a/3rdparty/asio/include/asio/detail/winapp_thread.hpp +++ b/3rdparty/asio/include/asio/detail/winapp_thread.hpp @@ -2,7 +2,7 @@ // detail/winapp_thread.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 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) @@ -19,8 +19,8 @@ #if defined(ASIO_WINDOWS) && defined(ASIO_WINDOWS_APP) -#include "asio/detail/memory.hpp" #include "asio/detail/noncopyable.hpp" +#include "asio/detail/scoped_ptr.hpp" #include "asio/detail/socket_types.hpp" #include "asio/detail/throw_error.hpp" #include "asio/error.hpp" @@ -40,7 +40,7 @@ public: template <typename Function> winapp_thread(Function f, unsigned int = 0) { - std::auto_ptr<func_base> arg(new func<Function>(f)); + scoped_ptr<func_base> arg(new func<Function>(f)); DWORD thread_id = 0; thread_ = ::CreateThread(0, 0, winapp_thread_function, arg.get(), 0, &thread_id); @@ -108,7 +108,7 @@ private: inline DWORD WINAPI winapp_thread_function(LPVOID arg) { - std::auto_ptr<winapp_thread::func_base> func( + scoped_ptr<winapp_thread::func_base> func( static_cast<winapp_thread::func_base*>(arg)); func->run(); return 0; |