boost::iostreams::filtered_streambuf<output> out; out.push(toupper_output_filter()); out.push(std::cout);