diff --git a/tests/src/unit-custom-object-type.cpp b/tests/src/unit-custom-object-type.cpp index f397c8f8a..cb2cb5ff3 100644 --- a/tests/src/unit-custom-object-type.cpp +++ b/tests/src/unit-custom-object-type.cpp @@ -162,7 +162,7 @@ class no_key_compare_map return data.erase(key); } - void swap(no_key_compare_map& other) + void swap(no_key_compare_map& other) noexcept(noexcept(data.swap(other.data))) { data.swap(other.data); }