summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asio/src/tests/unit/windows/object_handle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asio/src/tests/unit/windows/object_handle.cpp')
-rw-r--r--3rdparty/asio/src/tests/unit/windows/object_handle.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/3rdparty/asio/src/tests/unit/windows/object_handle.cpp b/3rdparty/asio/src/tests/unit/windows/object_handle.cpp
index 6fdde1d7940..0784ba9fdb7 100644
--- a/3rdparty/asio/src/tests/unit/windows/object_handle.cpp
+++ b/3rdparty/asio/src/tests/unit/windows/object_handle.cpp
@@ -2,7 +2,7 @@
// object_handle.cpp
// ~~~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2024 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)
@@ -61,16 +61,16 @@ void test()
HANDLE native_handle2 = INVALID_HANDLE_VALUE;
win::object_handle handle4(ioc_ex, native_handle2);
-#if defined(ASIO_HAS_MOVE)
win::object_handle handle5(std::move(handle4));
-#endif // defined(ASIO_HAS_MOVE)
+
+ win::basic_object_handle<io_context::executor_type> handle6(ioc);
+ win::object_handle handle7(std::move(handle6));
// basic_object_handle operators.
-#if defined(ASIO_HAS_MOVE)
handle1 = win::object_handle(ioc);
handle1 = std::move(handle3);
-#endif // defined(ASIO_HAS_MOVE)
+ handle1 = std::move(handle6);
// basic_io_object functions.
@@ -83,9 +83,9 @@ void test()
= handle1.lowest_layer();
(void)lowest_layer;
- const win::object_handle& handle6 = handle1;
+ const win::object_handle& handle8 = handle1;
const win::object_handle::lowest_layer_type& lowest_layer3
- = handle6.lowest_layer();
+ = handle8.lowest_layer();
(void)lowest_layer3;
HANDLE native_handle4 = INVALID_HANDLE_VALUE;
@@ -126,5 +126,5 @@ void test()
ASIO_TEST_SUITE
(
"windows/object_handle",
- ASIO_TEST_CASE(windows_object_handle_compile::test)
+ ASIO_COMPILE_TEST_CASE(windows_object_handle_compile::test)
)