forked from boostorg/container_hash
Add explicit allocator to vector<bool> overloads
Needed when container_fwd.hpp is used, as it doesn't specify the default arguments.
This commit is contained in:
@@ -71,8 +71,8 @@ namespace boost
|
||||
}
|
||||
|
||||
inline std::size_t hash_range(
|
||||
std::vector<bool>::iterator first,
|
||||
std::vector<bool>::iterator last)
|
||||
std::vector<bool, std::allocator<bool> >::iterator first,
|
||||
std::vector<bool, std::allocator<bool> >::iterator last)
|
||||
{
|
||||
std::size_t seed = 0;
|
||||
|
||||
@@ -85,8 +85,8 @@ namespace boost
|
||||
}
|
||||
|
||||
inline std::size_t hash_range(
|
||||
std::vector<bool>::const_iterator first,
|
||||
std::vector<bool>::const_iterator last)
|
||||
std::vector<bool, std::allocator<bool> >::const_iterator first,
|
||||
std::vector<bool, std::allocator<bool> >::const_iterator last)
|
||||
{
|
||||
std::size_t seed = 0;
|
||||
|
||||
@@ -100,8 +100,8 @@ namespace boost
|
||||
|
||||
inline void hash_range(
|
||||
std::size_t& seed,
|
||||
std::vector<bool>::iterator first,
|
||||
std::vector<bool>::iterator last)
|
||||
std::vector<bool, std::allocator<bool> >::iterator first,
|
||||
std::vector<bool, std::allocator<bool> >::iterator last)
|
||||
{
|
||||
for(; first != last; ++first)
|
||||
{
|
||||
@@ -111,8 +111,8 @@ namespace boost
|
||||
|
||||
inline void hash_range(
|
||||
std::size_t& seed,
|
||||
std::vector<bool>::const_iterator first,
|
||||
std::vector<bool>::const_iterator last)
|
||||
std::vector<bool, std::allocator<bool> >::const_iterator first,
|
||||
std::vector<bool, std::allocator<bool> >::const_iterator last)
|
||||
{
|
||||
for(; first != last; ++first)
|
||||
{
|
||||
|
Reference in New Issue
Block a user