diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-08-16 13:45:52 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-08-19 07:38:03 +0000 |
commit | d84b3bb9537eac5b0b0e2bb09061ae3d700d7199 (patch) | |
tree | 97fd1611e8adb6ffbee3426a147438482e7e38ba /searchcommon/src | |
parent | c3ece362865b788a6fb9a86718cb34ec9af609aa (diff) |
Remove "enable enumerated save" flag from attribute vectors as this should be always on.
For production code this has been on for several years already.
Diffstat (limited to 'searchcommon/src')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/iattributevector.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h index 6dbf311ef82..71319d782f1 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h +++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h @@ -5,6 +5,7 @@ #include "collectiontype.h" #include "basictype.h" #include <vespa/searchcommon/common/iblobconverter.h> +#include <ostream> #include <vector> namespace search { @@ -48,6 +49,14 @@ public: } }; +template <typename T> +std::ostream& +operator<<(std::ostream& os, const WeightedType<T>& value) +{ + os << "{" << value.value() << "," << value.weight() << "}"; + return os; +} + /** * This is a read interface used to access the content of an attribute vector. **/ |