diff options
author | Geir Storli <geirst@yahooinc.com> | 2023-04-26 23:40:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 23:40:42 +0200 |
commit | 58daaccf83103d8b082c8ca724dc5c78f5d84392 (patch) | |
tree | 986907d81805f65220354f06c9e39a8bdcc29a7f | |
parent | 43b50db3091f5de2bde53e5334d0c18853d74d21 (diff) | |
parent | c6be03853f61579982ea349756865572b1563f6c (diff) |
Merge pull request #26878 from vespa-engine/toregge/add-default-constructor-for-featureset-value
Add default constructor for vespalib::FeatureSet::Value
-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 ae7a0c6932f..3e6052400d9 100644 --- a/vespalib/src/vespa/vespalib/util/featureset.h +++ b/vespalib/src/vespa/vespalib/util/featureset.h @@ -22,6 +22,11 @@ public: std::vector<char> _data; double _value; public: + Value() noexcept + : _data(), + _value(0.0) + { + } bool operator==(const Value &rhs) const { return ((_data == rhs._data) && (_value == rhs._value)); } |