|
Boost : |
Subject: [boost] [asio] streambuf example wrong
From: Michael Caisse (boost_at_[hidden])
Date: 2010-01-11 14:51:44
The example section in the documentation for boost::asio::streambuf indicates you can:
boost::asio::streambuf::const_buffers_type bufs = b.prepare(512);
The compiler (gcc) thinks not.
You can however:
boost::asio::streambuf::const_buffer_type bufs( b.prepare(512) );
Regards -
michael
-- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk