diff --git a/src/g3log/active.hpp b/src/g3log/active.hpp index b04ca3c9..c3b9b349 100644 --- a/src/g3log/active.hpp +++ b/src/g3log/active.hpp @@ -48,7 +48,7 @@ namespace kjellkod { public: virtual ~Active() { - send([this] { done_ = true;}); + send([this]() noexcept { done_ = true;}); thd_.join(); } diff --git a/src/g3log/logworker.hpp b/src/g3log/logworker.hpp index 4f925b49..0a46e075 100644 --- a/src/g3log/logworker.hpp +++ b/src/g3log/logworker.hpp @@ -127,7 +127,7 @@ namespace g3 { /// This will clear/remove all the sinks. If a sink shared_ptr was retrieved via the sink /// handle then the sink will be removed internally but will live on in the client's instance void removeAllSinks() { - auto bg_clear_sink_call = [this] { _impl._sinks.clear(); }; + auto bg_clear_sink_call = [this]() noexcept { _impl._sinks.clear(); }; auto token_cleared = g3::spawn_task(bg_clear_sink_call, _impl._bg.get()); token_cleared.wait(); }