Opened 11 years ago

Last modified 11 years ago

#6295 new Bugs

Documentation Example Error

Reported by: anonymous Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by anonymous, 11 years ago

Component: Documentationasio
Owner: changed from Matias Capeletto to chris_kohlhoff
Note: See TracTickets for help on using tickets.