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