I am new to boost::iostreams so this might be trivial:
boost::iostreams
Assuming namespace io = boost::iostreams;
namespace io = boost::iostreams;
this works
io::fil
Wrapping std::cout with boost::ref worked for me:
std::cout
io::filtering_ostream out(DummyOutputFilter() | boost::ref(std::cout));
See note_1 in pipable docs for details.