From 15c4c3cc63ebb4c210d565746a96ac07b7535e8e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 19 Sep 2019 19:58:46 -0700 Subject: [PATCH] ircd::util: Additional noexcept ctor. --- include/ircd/util/scope_restore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ircd/util/scope_restore.h b/include/ircd/util/scope_restore.h index 4cb3775f5..0213bef57 100644 --- a/include/ircd/util/scope_restore.h +++ b/include/ircd/util/scope_restore.h @@ -23,7 +23,7 @@ struct ircd::util::scope_restore T *restore {nullptr}; T theirs; - scope_restore(T &restore); + scope_restore(T &restore) noexcept; scope_restore(T &restore, T&& ours); template scope_restore(T &restore, args&&... ours); scope_restore(const scope_restore &) = delete; @@ -33,6 +33,7 @@ struct ircd::util::scope_restore template ircd::util::scope_restore::scope_restore(T &restore) +noexcept :restore{&restore} ,theirs{std::move(restore)} {