From ece41163299a95d02103de422ff7aabde38d5aa2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 13 Oct 2016 10:00:20 +0100 Subject: [PATCH] Try to fix another warning --- test/helpers/equivalent.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/helpers/equivalent.hpp b/test/helpers/equivalent.hpp index f452c807..127a394b 100644 --- a/test/helpers/equivalent.hpp +++ b/test/helpers/equivalent.hpp @@ -43,19 +43,15 @@ namespace test struct equivalent_type { template - bool operator()(T1 const& x, T2 const& y) { + bool operator()(T1 const& x, T2 const& y) const { return equivalent_impl(x, y, derived); } }; - // This won't be a problem as I'm only using a single compile unit + // This should't be a problem as I'm only using a single compile unit // in each test (this is actually require by the minimal test // framework). - // - // boostinspect:nounnamed - namespace { - equivalent_type equivalent; - } + const equivalent_type equivalent; template class unordered_equivalence_tester