formatting

This commit is contained in:
gabime
2018-03-16 17:35:56 +02:00
parent 4ee89877d5
commit 4445f6f869
26 changed files with 525 additions and 248 deletions

View File

@@ -11,7 +11,8 @@
namespace utils {
template<typename T> inline std::string format(const T &value)
template<typename T>
inline std::string format(const T &value)
{
static std::locale loc("");
std::stringstream ss;
@@ -20,7 +21,8 @@ template<typename T> inline std::string format(const T &value)
return ss.str();
}
template<> inline std::string format(const double &value)
template<>
inline std::string format(const double &value)
{
static std::locale loc("");
std::stringstream ss;