From f16a07086f00e87e9901fb9c5c6f7a7c2f80fe3e Mon Sep 17 00:00:00 2001 From: Martin Dorey Date: Fri, 16 Feb 2024 21:32:13 -0800 Subject: [PATCH] =?UTF-8?q?boost/threadpool/detail/pool=5Fcore.hpp:=20Conn?= =?UTF-8?q?or=20Smith=20suggests=20catching=20by=20const=20reference=20to?= =?UTF-8?q?=20fix=20gcc-8's=20warning:=20catching=20polymorphic=20type=20?= =?UTF-8?q?=E2=80=98class=20boost::thread=5Fresource=5Ferror=E2=80=99=20by?= =?UTF-8?q?=20value=20(https://github.com/philipphenkel/threadpool/issues/?= =?UTF-8?q?5).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boost/threadpool/detail/pool_core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boost/threadpool/detail/pool_core.hpp b/boost/threadpool/detail/pool_core.hpp index 8c72803..b3af127 100644 --- a/boost/threadpool/detail/pool_core.hpp +++ b/boost/threadpool/detail/pool_core.hpp @@ -350,7 +350,7 @@ namespace boost { namespace threadpool { namespace detail m_worker_count++; m_active_worker_count++; } - catch(thread_resource_error) + catch(const thread_resource_error&) { return false; }