formatting
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user