summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-12-04 10:45:56 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-12-04 10:54:21 +0100
commit2c3f6574d140775d8aa975f24d4f74b9a674b8d8 (patch)
tree08b07ffc0bdffa1bc4ac48cfc995f918b1246c4c /vespalib
parent555200c6f53a4ddb579181cac50a950c5647d854 (diff)
Add noexcept specifier to non-throwing member functions.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/data/slime/symbol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/data/slime/symbol.h b/vespalib/src/vespa/vespalib/data/slime/symbol.h
index 20cf6a26d66..b63d264f233 100644
--- a/vespalib/src/vespa/vespalib/data/slime/symbol.h
+++ b/vespalib/src/vespa/vespalib/data/slime/symbol.h
@@ -22,7 +22,7 @@ public:
Symbol(uint32_t v) : _value(v) {}
bool undefined() const { return (_value == UNDEFINED); }
uint32_t getValue() const { return _value; }
- bool operator<(const Symbol &rhs) const { return (_value < rhs._value); }
+ bool operator<(const Symbol &rhs) const noexcept { return (_value < rhs._value); }
bool operator==(const Symbol &rhs) const { return (_value == rhs._value); }
};