summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));
}