Browse Source

Unnecessary try/catch removed.

main
offa 7 years ago
parent
commit
ddd723bde3
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      include/scope_success.h

+ 1
- 5
include/scope_success.h View File

@@ -47,15 +47,11 @@ namespace sr
std::enable_if_t<std::is_constructible<EF, EFP>::value, int> = 0,
std::enable_if_t<std::is_lvalue_reference<EFP>::value, int> = 0
>
explicit scope_success(EFP&& exitFunction) try : m_exitFunction(exitFunction),
explicit scope_success(EFP&& exitFunction) : m_exitFunction(exitFunction),
m_execute_on_destruction(true),
m_uncaught_on_creation(uncaught_exceptions())
{
}
catch( ... )
{
throw;
}

scope_success(const scope_success&) = delete;


Loading…
Cancel
Save