From 2e1ef850e3e42108edc7f7aae037a6bf6a41c3e9 Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Thu, 18 Nov 2021 10:25:44 -0800 Subject: [PATCH] Add const qualification to auto-generated allocator methods in test suite --- test/unordered/allocator_traits.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unordered/allocator_traits.cpp b/test/unordered/allocator_traits.cpp index 476205b7..0517fb97 100644 --- a/test/unordered/allocator_traits.cpp +++ b/test/unordered/allocator_traits.cpp @@ -65,9 +65,9 @@ { \ return (std::numeric_limits::max)(); \ } \ - bool operator==(name const&) { return true; } \ - bool operator!=(name const&) { return false; } \ -/**/ + bool operator==(name const&) const { return true; } \ + bool operator!=(name const&) const { return false; } \ + /**/ struct yes_type {