From ce5033c4a04edcf4d1f73dba8fb444f0eedef677 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 27 Sep 2023 12:09:28 -0700 Subject: [PATCH] Update out-of-line definitions in prime_fmod to be conditional on pre-c++17 support --- include/boost/unordered/detail/prime_fmod.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/unordered/detail/prime_fmod.hpp b/include/boost/unordered/detail/prime_fmod.hpp index 96793516..1fe55b8c 100644 --- a/include/boost/unordered/detail/prime_fmod.hpp +++ b/include/boost/unordered/detail/prime_fmod.hpp @@ -191,6 +191,7 @@ namespace boost { } }; // prime_fmod_size +#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) // https://en.cppreference.com/w/cpp/language/static#Constant_static_members // If a const non-inline (since C++17) static data member or a constexpr // static data member (since C++11)(until C++17) is odr-used, a definition @@ -205,6 +206,7 @@ namespace boost { template constexpr std::size_t (*prime_fmod_size::positions[])(std::size_t); +#endif } // namespace detail } // namespace unordered } // namespace boost