
27 Nov
2006
27 Nov
'06
4:43 p.m.
On 11/27/06, Andrew Schweitzer
Is there a standard way to output to multiple streams at the same time?
You could probably use something similar to: namespace io = boost::iostreams; fstream f("out.txt"); io::tee_devicestd::ostream,std::fstream teedev(std::cout, f); io::stream< io::tee_devicestd::ostream,std::fstream > my_tee(teedev); DoSomething(my_tee);