Prefer specific [io]stringstream where possible
These better communicate intent and are slightly more efficient.
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
using namespace std;
|
||||
|
||||
template <class T> std::string str(T value) {
|
||||
std::stringstream s;
|
||||
std::ostringstream s;
|
||||
s << value;
|
||||
return s.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user