astyle
This commit is contained in:
		@@ -34,21 +34,21 @@ namespace utils
 | 
			
		||||
template<typename T>
 | 
			
		||||
inline std::string format(const T& value)
 | 
			
		||||
{
 | 
			
		||||
	static std::locale loc("");
 | 
			
		||||
	std::stringstream ss;
 | 
			
		||||
	ss.imbue(loc);
 | 
			
		||||
	ss << value;
 | 
			
		||||
	return ss.str();
 | 
			
		||||
    static std::locale loc("");
 | 
			
		||||
    std::stringstream ss;
 | 
			
		||||
    ss.imbue(loc);
 | 
			
		||||
    ss << value;
 | 
			
		||||
    return ss.str();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template<>
 | 
			
		||||
inline std::string format(const double & value)
 | 
			
		||||
{
 | 
			
		||||
	static std::locale loc("");
 | 
			
		||||
	std::stringstream ss;
 | 
			
		||||
	ss.imbue(loc);
 | 
			
		||||
	ss << std::fixed << std::setprecision(1) << value;
 | 
			
		||||
	return ss.str();
 | 
			
		||||
    static std::locale loc("");
 | 
			
		||||
    std::stringstream ss;
 | 
			
		||||
    ss.imbue(loc);
 | 
			
		||||
    ss << std::fixed << std::setprecision(1) << value;
 | 
			
		||||
    return ss.str();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user