Skip to content

Commit

Permalink
Fix compilation with clang-1205.0.22.9.
Browse files Browse the repository at this point in the history
This fixes the following error:

`ISO C++ requires the name after '::~' to be found in the same scope as the name before '::~' [-Werror,-Wdtor-name]
sg::detail::scope_guard<Callback>::~scope_guard() noexcept´
  • Loading branch information
luis4a0 committed May 14, 2021
1 parent 760de0a commit 85243d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scope_guard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ noexcept(std::is_nothrow_constructible<Callback, Callback&&>::value)

////////////////////////////////////////////////////////////////////////////////
template<typename Callback>
sg::detail::scope_guard<Callback>::~scope_guard() noexcept
sg::detail::scope_guard<Callback>::~scope_guard<Callback>() noexcept
{
if(m_active)
m_callback();
Expand Down

0 comments on commit 85243d7

Please # to comment.