Boost C++ Libraries: Ticket #4746: Read operations incorrectly accept const_buffers_1 https://svn.boost.org/trac10/ticket/4746 <p> In Asio 1.4.6 / Boost 1.44, following program compiles when it shouldn't: </p> <pre class="wiki">#include &lt;boost/asio.hpp&gt; #include &lt;string&gt; #include &lt;vector&gt; void handler(boost::system::error_code, std::size_t) {} int main() { boost::asio::io_service io_service; boost::asio::ip::tcp::socket sock(io_service); boost::asio::const_buffers_1 cb1(0, 0); sock.read_some(cb1); sock.async_read_some(cb1, handler); std::string s; sock.read_some(boost::asio::buffer(s)); sock.async_read_some(boost::asio::buffer(s), handler); const std::vector&lt;char&gt; v; sock.read_some(boost::asio::buffer(v)); sock.async_read_some(boost::asio::buffer(v), handler); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4746 Trac 1.4.3 chris_kohlhoff Sun, 17 Oct 2010 21:22:19 GMT summary changed https://svn.boost.org/trac10/ticket/4746#comment:1 https://svn.boost.org/trac10/ticket/4746#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Read operations incorrectly accept ConstBufferSequences</span> → <span class="trac-field-new">Read operations incorrectly accept const_buffers_1</span> </li> </ul> Ticket chris_kohlhoff Sun, 17 Oct 2010 21:25:12 GMT <link>https://svn.boost.org/trac10/ticket/4746#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4746#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/66056" title="Fix so that read operations do not accept const_buffers_1 arguments. ...">[66056]</a>) Fix so that read operations do not accept const_buffers_1 arguments. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4746" title="#4746: Bugs: Read operations incorrectly accept const_buffers_1 (closed: fixed)">#4746</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Mon, 18 Oct 2010 20:49:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4746#comment:3 https://svn.boost.org/trac10/ticket/4746#comment:3 <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">fixed</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/66080" title="Merge from trunk. ........ r66022 | chris_kohlhoff | 2010-10-17 ...">[66080]</a>. </p> Ticket