Subject: [Boost-bugs] [Boost C++ Libraries] #6295: Documentation Example Error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-19 11:06:05
#6295: Documentation Example Error
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: matias
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
In the example documentation for the multicast sender in the asio section
(http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/example/multicast/sender.cpp),
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).
If this is changed so that buffer is created using the 'message_.data()'
method then all is well.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6295> 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:08 UTC