Boost C++ Libraries: Ticket #6295: Documentation Example Error https://svn.boost.org/trac10/ticket/6295 <p> In the example documentation for the multicast sender in the asio section (<a href="http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/example/multicast/sender.cpp">http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/example/multicast/sender.cpp</a>), the code for sending the message in the handle_timeout( ... ) method instantiates a buffer by referencing directly the 'message_' member variable, which is a std::string. This results in a 'string is not dereferanceable' exception being thrown (on Windows anyway). </p> <p> If this is changed so that buffer is created using the 'message_.data()' method then all is well. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6295 Trac 1.4.3 anonymous Mon, 19 Dec 2011 11:24:42 GMT owner, component changed https://svn.boost.org/trac10/ticket/6295#comment:1 https://svn.boost.org/trac10/ticket/6295#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket