Merge pull request #2285 from T0b1-iOS/develop
add inline specifier for detail::combine
This commit is contained in:
commit
1fd6c5882a
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
// boost::hash_combine
|
// boost::hash_combine
|
||||||
std::size_t combine(std::size_t seed, std::size_t h) noexcept
|
inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
|
||||||
{
|
{
|
||||||
seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
|
seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
|
||||||
return seed;
|
return seed;
|
||||||
|
|
|
@ -4454,7 +4454,7 @@ namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
// boost::hash_combine
|
// boost::hash_combine
|
||||||
std::size_t combine(std::size_t seed, std::size_t h) noexcept
|
inline std::size_t combine(std::size_t seed, std::size_t h) noexcept
|
||||||
{
|
{
|
||||||
seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
|
seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
|
||||||
return seed;
|
return seed;
|
||||||
|
|
Loading…
Reference in a new issue