Include vector header, needed to get the iterator type

This commit is contained in:
Daniel James
2018-03-29 21:57:52 +01:00
parent 60f5e0d393
commit 601b8d0378

View File

@@ -22,6 +22,7 @@
#include <boost/detail/container_fwd.hpp> #include <boost/detail/container_fwd.hpp>
#include <boost/core/enable_if.hpp> #include <boost/core/enable_if.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>
#include <vector>
#if !defined(BOOST_NO_CXX11_HDR_ARRAY) #if !defined(BOOST_NO_CXX11_HDR_ARRAY)
# include <array> # include <array>
@@ -71,8 +72,8 @@ namespace boost
} }
inline std::size_t hash_range( inline std::size_t hash_range(
std::vector<bool, std::allocator<bool> >::iterator first, std::vector<bool>::iterator first,
std::vector<bool, std::allocator<bool> >::iterator last) std::vector<bool>::iterator last)
{ {
std::size_t seed = 0; std::size_t seed = 0;
@@ -85,8 +86,8 @@ namespace boost
} }
inline std::size_t hash_range( inline std::size_t hash_range(
std::vector<bool, std::allocator<bool> >::const_iterator first, std::vector<bool>::const_iterator first,
std::vector<bool, std::allocator<bool> >::const_iterator last) std::vector<bool>::const_iterator last)
{ {
std::size_t seed = 0; std::size_t seed = 0;
@@ -100,8 +101,8 @@ namespace boost
inline void hash_range( inline void hash_range(
std::size_t& seed, std::size_t& seed,
std::vector<bool, std::allocator<bool> >::iterator first, std::vector<bool>::iterator first,
std::vector<bool, std::allocator<bool> >::iterator last) std::vector<bool>::iterator last)
{ {
for(; first != last; ++first) for(; first != last; ++first)
{ {
@@ -111,8 +112,8 @@ namespace boost
inline void hash_range( inline void hash_range(
std::size_t& seed, std::size_t& seed,
std::vector<bool, std::allocator<bool> >::const_iterator first, std::vector<bool>::const_iterator first,
std::vector<bool, std::allocator<bool> >::const_iterator last) std::vector<bool>::const_iterator last)
{ {
for(; first != last; ++first) for(; first != last; ++first)
{ {