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

This commit is contained in:
Peter Dimov committed 2022-09-17 01:09:47 +03:00
1 parent b4e0643ecd
commit e391cf6841
2 files changed
+20 -13

No files matched your search

+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>