Just a question if someone has done it.
I was wondering if (or rather how) I can bind std::cout with boost::bind.
The idea I'm playing around with is to bind an error message to std::cout to reduce code.
I just can't get the syntax right.
This is "closest" I've come to bind it.Code:boost::bind(&std::operator << < std::char_traits<char> >, std::cout, "Test");
Any ideas (still looking for the proper return type, too)?