Skip to content

Commit

Permalink
Remove local hash_value overload; boost::hash supports array-like typ…
Browse files Browse the repository at this point in the history
…es natively.
  • Loading branch information
pdimov committed Jan 26, 2025
1 parent acef604 commit b147799
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/boost/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,6 @@ namespace boost {
return arg.elems;
}

template <class It> std::size_t hash_range(It, It);

template<class T, std::size_t N>
std::size_t hash_value(const array<T,N>& arr)
{
return boost::hash_range(arr.begin(), arr.end());
}

template <size_t Idx, typename T, size_t N>
BOOST_CXX14_CONSTEXPR T &get(boost::array<T,N> &arr) BOOST_NOEXCEPT {
BOOST_STATIC_ASSERT_MSG ( Idx < N, "boost::get<>(boost::array &) index out of range" );
Expand Down

0 comments on commit b147799

Please sign in to comment.