mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 21:44:01 +00:00
Update out-of-line definitions in prime_fmod to be conditional on pre-c++17 support
This commit is contained in:
parent
bcbb13e0cf
commit
ce5033c4a0
@ -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 <class T>
|
||||
constexpr std::size_t (*prime_fmod_size<T>::positions[])(std::size_t);
|
||||
#endif
|
||||
} // namespace detail
|
||||
} // namespace unordered
|
||||
} // namespace boost
|
||||
|
Loading…
x
Reference in New Issue
Block a user