Subject: [Boost-bugs] [Boost C++ Libraries] #7859: should ssl/engine get_output return const buffer ?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-06 14:30:40
#7859: should ssl/engine get_output return const buffer ?
------------------------------+---------------------------------------------
Reporter: itsme@⦠| Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
compiling the attached testasiossl.cpp program, you get an error message
complaining that it is not possible to convert 'mutable_buffers_1' to
'const_buffers_1' in a call to async_write_some, called from write_op. (
see the attached files for the full compiler output )
The reason write_op tries to pass a mutable buffer instead of a const
buffer, is that it obtains the buffer by calling 'get_output'. which
returns a mutable buffer. ( in boost/asio/ssl/detail/impl/engine.ipp )
shouldn't get_output return a const buffer sequence?
note that in the test program i explicitly defined the types for the
buffers, instead of making them a templated argument.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7859> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC