From e1f882b25d0d0ebc5b4d2b03ac6b5aba7ce6cc0f Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Tue, 19 Feb 2019 19:11:03 +0300 Subject: [PATCH] is_assignable_test: Fixed copy-paste error The test `is_assignable` checks self-assignability, while the operator was defined for other type, so it was testing the non-noexcept implicit generated copy assignment operator instead. --- test/is_assignable_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/is_assignable_test.cpp b/test/is_assignable_test.cpp index 5eb2e7a..8798dd4 100644 --- a/test/is_assignable_test.cpp +++ b/test/is_assignable_test.cpp @@ -27,7 +27,7 @@ struct non_assignable struct noexcept_assignable { noexcept_assignable(); - noexcept_assignable& operator=(const non_assignable&)noexcept; + noexcept_assignable& operator=(const noexcept_assignable&)noexcept; }; #endif