From 2aff35215fbe24459aa4057d5b31ea7490046ca6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 30 Jul 2008 05:12:46 -0400 Subject: Enabled a huge number of warning flags for g++ in acprep, and fixed them all except for several unused parameter warnings (because there is so much code still #if 0'd out), and one implicit conversion from long long to long which still has to be dealt with. --- predicate.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'predicate.h') diff --git a/predicate.h b/predicate.h index 1913e1d7..c9ceb7ae 100644 --- a/predicate.h +++ b/predicate.h @@ -59,13 +59,8 @@ public: TRACE_DTOR(item_predicate); } - bool operator()(const T& item) const { -#if 0 - template context_t context(item); - return ! predicate || predicate->calc(context).strip_annotations(); -#else - return false; -#endif + bool operator()(T& item) const { + return ! predicate || predicate.calc(item).strip_annotations(); } }; -- cgit v1.2.3