Hi,
the situation is the following. I am working with a function which requires ostream to be passed into it so that it can directly print results into file od stdout.... example
However i don't wish to print results into either a file od stdout but rather to save them into a string . So my question is what would be the best way to achieve this "redirection" (note that i need to pass an ostream to the function ).Code:f(ostream& stream){}
thnx
b