diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-12-04 10:45:56 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-12-04 10:54:21 +0100 |
commit | 2c3f6574d140775d8aa975f24d4f74b9a674b8d8 (patch) | |
tree | 08b07ffc0bdffa1bc4ac48cfc995f918b1246c4c /vespalib | |
parent | 555200c6f53a4ddb579181cac50a950c5647d854 (diff) |
Add noexcept specifier to non-throwing member functions.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/data/slime/symbol.h | 2 |
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); } }; |