Report question

Question: C++: how to get fprintf results as a std::string w/o sprintf