Opened 11 years ago

Closed 10 years ago

#5728 closed Bugs (invalid)

bytes_type type change in 1.47

Reported by: alexsharoff@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

In previous versions I could do this:

template <typename T, std::size_t N>
inline std::size_t hash_value(const boost::array<T,N>& arr)
{ 
    return boost::hash_range(arr.begin(), arr.end()); 
}
boost::hash_combine(seed, ep.address().to_v4().to_bytes());

With 1.47 it doesn't compile, because bytes_type changed from boost::array to boost::asio::detail::array.

Change History (1)

comment:1 by chris_kohlhoff, 10 years ago

Resolution: invalid
Status: newclosed

This change is documented here. Define BOOST_ASIO_DISABLE_STD_ARRAY if you want to force asio to use boost::array.

Note: See TracTickets for help on using tickets.