summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-06-28 16:03:25 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-06-28 16:03:25 +0000
commitbe3fe67795ebfbdbfe6bd241b8c68f1ac6ede206 (patch)
tree5e911ad1037682d77cd1439175069d88b5a6943c /vespalib
parent9b7582100d7752185dd94a1dceea5b625c26044c (diff)
Add noexcept
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/gencnt.h6
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