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:
Daniel James
2018-03-29 19:50:17 +01:00
parent e67d20d1c3
commit 60f5e0d393

View File

@@ -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)
{