Boost logo

Boost :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-07-17 13:11:09


Hi,

Currently I'm doing this:

namespace io = boost::io;
std::vector<boost::uint8_t> data;
io::source<io::iobyte> src( io::chain( io::read_mem( data ) ) );

Notice how I have to specify io::chain() explicitly. Would it be
possible for it to be implicitly constructable from a stub? This would
allow me to clean up the code a bit to this:

namespace io = boost::io;
std::vector<boost::uint8_t> data;
io::source<io::iobyte> src( io::read_mem( data ) );

Doing this results in compiler errors right now. Finding the solution
to the problem (as obvious as it seems) took a long time for me.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk