This commit is contained in:
Ion Gaztañaga
2023-04-18 22:08:26 +02:00
parent 22357b34b7
commit 51f6cf69fc

View File

@@ -101,8 +101,11 @@
#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_CONTAINER_FORCEINLINE inline
#elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__))
#elif defined(BOOST_CLANG) || (defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__)))
//Older GCCs and MinGw 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
#define BOOST_CONTAINER_FORCEINLINE inline
#else
#define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE