Skip to content

Commit c46d3c2

Browse files
committed
Don't use deprecated function boost::array::c_array().
1 parent 2ceb2f0 commit c46d3c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/asio/buffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ ASIO_NODISCARD inline mutable_buffer buffer(
10141014
boost::array<PodType, N>& data) noexcept
10151015
{
10161016
return mutable_buffer(
1017-
data.c_array(), data.size() * sizeof(PodType));
1017+
data.data(), data.size() * sizeof(PodType));
10181018
}
10191019

10201020
/// Create a new modifiable buffer that represents the given POD array.
@@ -1029,7 +1029,7 @@ ASIO_NODISCARD inline mutable_buffer buffer(
10291029
boost::array<PodType, N>& data,
10301030
std::size_t max_size_in_bytes) noexcept
10311031
{
1032-
return mutable_buffer(data.c_array(),
1032+
return mutable_buffer(data.data(),
10331033
data.size() * sizeof(PodType) < max_size_in_bytes
10341034
? data.size() * sizeof(PodType) : max_size_in_bytes);
10351035
}

0 commit comments

Comments
 (0)