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:
parent
a8b140ad6d
commit
15c4c3cc63
1 changed files with 2 additions and 1 deletions
|
@ -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)}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue