mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
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