Boost logo

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 Caisse
Object Modeling Designs

Boost list run by bdawes at, gregod at, cpdaniel at, john at