From 85243d7ac45ad6fadc062e12a4f14bca94857e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pe=C3=B1aranda?= Date: Fri, 14 May 2021 10:36:51 -0300 Subject: [PATCH] Fix compilation with clang-1205.0.22.9. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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::~scope_guard() noexcept´ --- scope_guard.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scope_guard.hpp b/scope_guard.hpp index 47712cb..501f0ba 100644 --- a/scope_guard.hpp +++ b/scope_guard.hpp @@ -149,7 +149,7 @@ noexcept(std::is_nothrow_constructible::value) //////////////////////////////////////////////////////////////////////////////// template -sg::detail::scope_guard::~scope_guard() noexcept +sg::detail::scope_guard::~scope_guard() noexcept { if(m_active) m_callback();