0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd::util: Additional noexcept ctor.

This commit is contained in:
Jason Volk 2019-09-19 19:58:46 -07:00
parent a8b140ad6d
commit 15c4c3cc63

View file

@ -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<class... args> scope_restore(T &restore, args&&... ours);
scope_restore(const scope_restore &) = delete;
@ -33,6 +33,7 @@ struct ircd::util::scope_restore
template<class T>
ircd::util::scope_restore<T>::scope_restore(T &restore)
noexcept
:restore{&restore}
,theirs{std::move(restore)}
{