Skip to content

Commit b147799

Browse files
committed
Remove local hash_value overload; boost::hash supports array-like types natively.
1 parent acef604 commit b147799

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/boost/array.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,14 +395,6 @@ namespace boost {
395395
return arg.elems;
396396
}
397397

398-
template <class It> std::size_t hash_range(It, It);
399-
400-
template<class T, std::size_t N>
401-
std::size_t hash_value(const array<T,N>& arr)
402-
{
403-
return boost::hash_range(arr.begin(), arr.end());
404-
}
405-
406398
template <size_t Idx, typename T, size_t N>
407399
BOOST_CXX14_CONSTEXPR T &get(boost::array<T,N> &arr) BOOST_NOEXCEPT {
408400
BOOST_STATIC_ASSERT_MSG ( Idx < N, "boost::get<>(boost::array &) index out of range" );

0 commit comments

Comments
 (0)