Overload std::to_string for user-defined types? [duplicate]
This question already has answers here: Should you overload swap in the std namespace? (5 answers) Making a user-defined class std::to_string-able (8 answers) Closed 29 days ago. What does the C++ standard have to say about overloading/implementing a templatized version of std::to_string like so: #include <string> #include <sstream> #include <ostream> namespace std { template<typename T> […]