mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 19:37:14 +02:00
Update out-of-line definitions in prime_fmod to be conditional on pre-c++17 support
This commit is contained in:
@ -191,6 +191,7 @@ namespace boost {
|
|||||||
}
|
}
|
||||||
}; // prime_fmod_size
|
}; // prime_fmod_size
|
||||||
|
|
||||||
|
#if defined(BOOST_NO_CXX17_INLINE_VARIABLES)
|
||||||
// https://en.cppreference.com/w/cpp/language/static#Constant_static_members
|
// 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
|
// 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
|
// static data member (since C++11)(until C++17) is odr-used, a definition
|
||||||
@ -205,6 +206,7 @@ namespace boost {
|
|||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
constexpr std::size_t (*prime_fmod_size<T>::positions[])(std::size_t);
|
constexpr std::size_t (*prime_fmod_size<T>::positions[])(std::size_t);
|
||||||
|
#endif
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
} // namespace unordered
|
} // namespace unordered
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
Reference in New Issue
Block a user