Change hash_detail::hash_range to take and return by value to avoid It=char* aliasing

This commit is contained in:
Peter Dimov
2022-09-17 01:09:47 +03:00
parent b4e0643ecd
commit e391cf6841
2 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -560,7 +560,7 @@ namespace boost
template <class It>
inline void hash_range( std::size_t& seed, It first, It last )
{
hash_detail::hash_range( seed, first, last );
seed = hash_detail::hash_range( seed, first, last );
}
template <class It>