From c08ead7f4b4e4aa5674151e180f05fcc0a05e644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 9 Aug 2020 23:27:12 +0200 Subject: [PATCH] Add BOOST_CONTAINER_DISABLE_NOINLINE --- include/boost/container/detail/workaround.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/container/detail/workaround.hpp b/include/boost/container/detail/workaround.hpp index 83aacef..b74e0fc 100644 --- a/include/boost/container/detail/workaround.hpp +++ b/include/boost/container/detail/workaround.hpp @@ -108,6 +108,15 @@ #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE #endif +//#define BOOST_CONTAINER_DISABLE_NOINLINE + +#if defined(BOOST_CONTAINER_DISABLE_NOINLINE) + #define BOOST_CONTAINER_NOINLINE +#else + #define BOOST_CONTAINER_NOINLINE BOOST_NOINLINE +#endif + + #if !defined(__has_feature) #define BOOST_CONTAINER_HAS_FEATURE(feature) 0 #else