aboutsummaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-07 11:16:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-07 11:16:35 +0000
commit9bb9d8e14827ecc4dba2d43e2d9e76248c120e1d (patch)
tree9e64c1471c0391410c824f75e2dc1fbfa8585229 /searchcommon
parentf2e89d3361cae0e2e74bac89405a175d6ecf5e98 (diff)
Add noexcept as indicated by -Wnoeexcept
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/iattributevector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
index 71319d782f1..c26906ac7c0 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
@@ -36,8 +36,8 @@ private:
int32_t _weight;
public:
- WeightedType() : _value(T()), _weight(1) { }
- WeightedType(T value_, int32_t weight_ = 1) : _value(value_), _weight(weight_) { }
+ WeightedType() noexcept : _value(T()), _weight(1) { }
+ WeightedType(T value_, int32_t weight_ = 1) noexcept : _value(value_), _weight(weight_) { }
const T & getValue() const { return _value; }
const T & value() const { return _value; }
void setValue(const T & v) { _value = v; }