diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-06-28 16:03:25 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-06-28 16:03:25 +0000 |
commit | be3fe67795ebfbdbfe6bd241b8c68f1ac6ede206 (patch) | |
tree | 5e911ad1037682d77cd1439175069d88b5a6943c /vespalib/src | |
parent | 9b7582100d7752185dd94a1dceea5b625c26044c (diff) |
Add noexcept
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/gencnt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/util/gencnt.h b/vespalib/src/vespa/vespalib/util/gencnt.h index cac868a8adb..72882cdcc2e 100644 --- a/vespalib/src/vespa/vespalib/util/gencnt.h +++ b/vespalib/src/vespa/vespalib/util/gencnt.h @@ -23,16 +23,16 @@ public: /** * @brief Create a generation counter with value 0 **/ - GenCnt() : _val(0) {} + GenCnt() noexcept : _val(0) {} /** * @brief Create a generation counter with the given value * * @param val initial value **/ - GenCnt(uint32_t val) : _val(val) {} + GenCnt(uint32_t val) noexcept : _val(val) {} - GenCnt(const GenCnt &rhs) : _val(rhs.getAsInt()) {} + GenCnt(const GenCnt &rhs) noexcept : _val(rhs.getAsInt()) {} /** * @brief empty destructor |