Explicitly construct return type in the dynamic buffers' data() member functions.
This commit is contained in:
parent
69e44a4cc6
commit
6f86878ff7
@ -1557,7 +1557,7 @@ public:
|
||||
*/
|
||||
const_buffers_type data() const ASIO_NOEXCEPT
|
||||
{
|
||||
return asio::buffer(string_, size_);
|
||||
return const_buffers_type(asio::buffer(string_, size_));
|
||||
}
|
||||
|
||||
/// Get a list of buffers that represents the output sequence, with the given
|
||||
@ -1708,7 +1708,7 @@ public:
|
||||
*/
|
||||
const_buffers_type data() const ASIO_NOEXCEPT
|
||||
{
|
||||
return asio::buffer(vector_, size_);
|
||||
return const_buffers_type(asio::buffer(vector_, size_));
|
||||
}
|
||||
|
||||
/// Get a list of buffers that represents the output sequence, with the given
|
||||
|
Loading…
Reference in New Issue
Block a user