summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h b/searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h
index fc657d606f9..90484f8cc3a 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h
@@ -13,10 +13,17 @@ class IAttributeVector;
* thread as async callback from asyncForEachAttribute() call on
* attribute manager.
*/
-class IAttributeFunctor
+class IConstAttributeFunctor
{
public:
virtual void operator()(const IAttributeVector &attributeVector) = 0;
+ virtual ~IConstAttributeFunctor() { }
+};
+
+class IAttributeFunctor
+{
+public:
+ virtual void operator()(IAttributeVector &attributeVector) = 0;
virtual ~IAttributeFunctor() { }
};