Explorar el Código

Move ctor is no longer noexcept.

main
offa hace 7 años
padre
commit
54190db19e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      include/scope_guard.h

+ 2
- 2
include/scope_guard.h Ver fichero

@@ -54,8 +54,8 @@ namespace sr

scope_guard_t(const scope_guard_t&) = delete;

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

Cargando…
Cancelar
Guardar