$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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