diff --git a/include/boost/container/detail/workaround.hpp b/include/boost/container/detail/workaround.hpp index fd48462..96395e2 100644 --- a/include/boost/container/detail/workaround.hpp +++ b/include/boost/container/detail/workaround.hpp @@ -98,8 +98,8 @@ #define BOOST_CONTAINER_FORCEINLINE inline #elif defined(BOOST_CONTAINER_FORCEINLINE_IS_BOOST_FORCELINE) #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE -#elif defined(BOOST_MSVC) && defined(_DEBUG) - //"__forceinline" and MSVC seems to have some bugs in debug mode +#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(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) #elif defined(__GNUC__) && (__GNUC__ <= 5)