diff options
author | Henning Baldersheim <balder@oath.com> | 2018-08-29 00:34:08 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-08-29 00:34:08 +0200 |
commit | 72300dc30237f4f10432652e4e9da45a5563db30 (patch) | |
tree | 293cc0148bf84656d19190450d08fa9a264b73a0 /searchcommon/src | |
parent | 9ae2e92efcfa3a95a6bd988dc7e34d7c84350289 (diff) |
Expose constness in interface to avoid cheating.
Diffstat (limited to 'searchcommon/src')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/i_attribute_functor.h | 9 |
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() { } }; |