From 57492c1a94e9683d72c291ed16d758e36afde909 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 13 Jan 2018 20:31:45 +0000 Subject: [PATCH] Make allocator comparison const in allocator_traits test --- test/unordered/allocator_traits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unordered/allocator_traits.cpp b/test/unordered/allocator_traits.cpp index c6b06f85..476205b7 100644 --- a/test/unordered/allocator_traits.cpp +++ b/test/unordered/allocator_traits.cpp @@ -36,8 +36,8 @@ { \ 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; } \ /**/ #define ALLOCATOR_METHODS_TYPEDEFS(name) \