From 3cf69aa85d9405cadf9f66bbb75887d38784051f Mon Sep 17 00:00:00 2001 From: Shaheen Gandhi Date: Fri, 13 Jan 2017 17:00:30 -0800 Subject: [PATCH] Fix use of move constructor in asio test L63 is undefined per the spec. This change adjusts the test to something that makes more sense, moving descriptor1 into descriptor3 and then back to descriptor1. --- test/posix/stream_descriptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/posix/stream_descriptor.cpp b/test/posix/stream_descriptor.cpp index 5a7758d5..65aab910 100644 --- a/test/posix/stream_descriptor.cpp +++ b/test/posix/stream_descriptor.cpp @@ -60,14 +60,14 @@ void test() posix::stream_descriptor descriptor2(ios, native_descriptor1); #if defined(BOOST_ASIO_HAS_MOVE) - posix::stream_descriptor descriptor3(std::move(descriptor3)); + posix::stream_descriptor descriptor3(std::move(descriptor1)); #endif // defined(BOOST_ASIO_HAS_MOVE) // basic_stream_descriptor operators. #if defined(BOOST_ASIO_HAS_MOVE) descriptor1 = posix::stream_descriptor(ios); - descriptor1 = std::move(descriptor2); + descriptor1 = std::move(descriptor3); #endif // defined(BOOST_ASIO_HAS_MOVE) // basic_io_object functions.