summaryrefslogtreecommitdiff
path: root/predicate.h
diff options
context:
space:
mode:
Diffstat (limited to 'predicate.h')
-rw-r--r--predicate.h9
1 files changed, 2 insertions, 7 deletions
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<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();
}
};