From b784bbbe45414084551a824504650f21cb653ca1 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 26 Oct 2020 21:00:06 +0000 Subject: [PATCH] libstdc++: Fix error in experimental::strand libstdc++-v3/ChangeLog: * include/experimental/executor (strand::_State): Fix thinko. --- libstdc++-v3/include/experimental/executor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/experimental/executor b/libstdc++-v3/include/experimental/executor index 45e813f6747..462a4b24b16 100644 --- a/libstdc++-v3/include/experimental/executor +++ b/libstdc++-v3/include/experimental/executor @@ -1602,8 +1602,8 @@ inline namespace v1 { #if defined(_GLIBCXX_HAS_GTHREADS) bool - running_in_this_thread() const - { return std::this_thread::get_id() == _M_state->_M_running_on; } + running_in_this_thread() const noexcept + { return std::this_thread::get_id() == _M_running_on; } std::thread::id _M_running_on; #else -- 2.30.2