From e0917d44f79506ada6c5f964bc6ca39f1f138a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 20 Apr 2026 00:56:28 +0200 Subject: [PATCH] Enable forceinline again for Clang and MinGW --- include/boost/intrusive/detail/workaround.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/boost/intrusive/detail/workaround.hpp b/include/boost/intrusive/detail/workaround.hpp index dd2b860..9c6e26a 100644 --- a/include/boost/intrusive/detail/workaround.hpp +++ b/include/boost/intrusive/detail/workaround.hpp @@ -48,11 +48,7 @@ #elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG)) //"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode #define BOOST_INTRUSIVE_FORCEINLINE inline -#elif defined(BOOST_CLANG) || (defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__))) - //Older GCCs have problems with forceinline - //Clang can have code bloat issues with forceinline, see - //https://lists.boost.org/boost-users/2023/04/91445.php and - //https://github.com/llvm/llvm-project/issues/62202 +#elif defined(BOOST_GCC) && (__GNUC__ <= 5) #define BOOST_INTRUSIVE_FORCEINLINE inline #else #define BOOST_INTRUSIVE_FORCEINLINE BOOST_FORCEINLINE