Bläddra i källkod

Braces added.

main
offa 7 år sedan
förälder
incheckning
48384ec9e8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      include/scope_guard_base.h

+ 1
- 1
include/scope_guard_base.h Visa fil

@@ -79,7 +79,7 @@ namespace detail

~scope_guard_base() noexcept(true)
{
if( m_execute_on_destruction == true && this->should_execute() == true )
if( (m_execute_on_destruction == true) && (this->should_execute() == true) )
{
m_exitFunction();
}

Laddar…
Avbryt
Spara