mirror of
https://github.com/microsoft/GSL.git
synced 2025-08-04 05:04:29 +02:00
Made noexcept
-consistent
This commit is contained in:
@@ -53,11 +53,11 @@ class final_action
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
template <class FF>
|
template <class FF>
|
||||||
explicit final_action(FF&& ff) : f{std::forward<FF>(ff)} { }
|
explicit final_action(FF&& ff) noexcept : f{std::forward<FF>(ff)} { }
|
||||||
|
|
||||||
~final_action() { if (invoke) f(); }
|
~final_action() noexcept { if (invoke) f(); }
|
||||||
|
|
||||||
final_action(final_action&& other)
|
final_action(final_action&& other) noexcept
|
||||||
: f(std::move(other.f)), invoke(std::exchange(other.invoke, false))
|
: f(std::move(other.f)), invoke(std::exchange(other.invoke, false))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user