Boost C++ Libraries: Ticket #7859: should ssl/engine get_output return const buffer ? https://svn.boost.org/trac10/ticket/7859 <p> 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 ) </p> <p> 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 ) </p> <p> shouldn't get_output return a const buffer sequence? </p> <p> note that in the test program i explicitly defined the types for the buffers, instead of making them a templated argument. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7859 Trac 1.4.3 itsme@… Sun, 06 Jan 2013 14:31:46 GMT attachment set https://svn.boost.org/trac10/ticket/7859 https://svn.boost.org/trac10/ticket/7859 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">testasiossl.cpp</span> </li> </ul> <p> program showing problem with ssl/engine get_output </p> Ticket itsme@… Sun, 06 Jan 2013 14:32:15 GMT attachment set https://svn.boost.org/trac10/ticket/7859 https://svn.boost.org/trac10/ticket/7859 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">getoutput-clang-errors.txt</span> </li> </ul> <p> compiler output from clang++ </p> Ticket itsme@… Sun, 06 Jan 2013 14:32:37 GMT attachment set https://svn.boost.org/trac10/ticket/7859 https://svn.boost.org/trac10/ticket/7859 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">getoutput-gcc-errors.txt</span> </li> </ul> <p> compiler output from g++ </p> Ticket itsme@… Sun, 06 Jan 2013 14:33:03 GMT attachment set https://svn.boost.org/trac10/ticket/7859 https://svn.boost.org/trac10/ticket/7859 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">asiossl.patch</span> </li> </ul> <p> proposed change to asio/ssl/engine </p> Ticket chris_kohlhoff Fri, 24 May 2013 04:29:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7859#comment:1 https://svn.boost.org/trac10/ticket/7859#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> By explicitly specifying the buffer types your teststream class does not adhere to the stream type requirements. It should accept an arbitrary <a class="missing wiki">ConstBufferSequence</a> (for async_write_some) or <a class="missing wiki">MutableBufferSequence</a> (for async_read_some). </p> Ticket