How do you print an istream variable to standard out. [EDIT] I am trying to debug a scenario wherein I need to ouput an istream to a log file
Pay attention to &&
in std::ifstream that allow you to direct using
#include
#include
#include
std::ostream& operator<<(std::ostream& os, std::basic_ostringstream&& iss){
return os<
output:
Test ostringstream overloading Test fstream overloading Process returned 0 (0x0) execution time : 0.012 s Press ENTER to continue.