aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-04-26 22:27:36 +0200
committerTor Egge <Tor.Egge@online.no>2023-04-26 22:27:36 +0200
commitc6be03853f61579982ea349756865572b1563f6c (patch)
treee1e9e487c3056bf335f20ce622214ef484717852 /vespalib
parent93ad9f1cc6dfbd6b3b2c62de49bf688b485c0e8f (diff)
Add default constructor for vespalib::FeatureSet::Value
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/featureset.h5
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));
}