File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments