
17 Jul
2008
17 Jul
'08
5:11 p.m.
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.