Quellcode durchsuchen

Move ctor made noexcept (fixes #8).

main
offa vor 7 Jahren
Ursprung
Commit
1aeaf4ed05
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      include/scope_guard.h

+ 2
- 2
include/scope_guard.h Datei anzeigen

@@ -16,8 +16,8 @@ namespace sg
{
}

scope_guard_t(scope_guard_t&& other) : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
scope_guard_t(scope_guard_t&& other) noexcept : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
{
other.release();
}

Laden…
Abbrechen
Speichern