diff options
author | Geir Storli <geirst@yahooinc.com> | 2023-04-28 09:31:47 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2023-04-28 09:31:47 +0000 |
commit | 07f6d5be822832bb5c4bd31e0bdf23d0a8b5ac99 (patch) | |
tree | b31f85524b26fce23d539ba1d1ff27a3e6bd011c /vespalib | |
parent | 9c04252f9c8573bdbb787b5e3a0f671487eb412e (diff) |
Test match features returned in streaming search result.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/featureset.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/featureset.h b/vespalib/src/vespa/vespalib/util/featureset.h index 5300b5faa86..79145a6eb71 100644 --- a/vespalib/src/vespa/vespalib/util/featureset.h +++ b/vespalib/src/vespa/vespalib/util/featureset.h @@ -27,6 +27,11 @@ public: _value(0.0) { } + Value(double value_in) noexcept + : _data(), + _value(value_in) + { + } bool operator==(const Value &rhs) const { return ((_data == rhs._data) && (_value == rhs._value)); } |