mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Default formatter and common types into common.h
This commit is contained in:
@@ -11,7 +11,7 @@ namespace utils
|
||||
{
|
||||
|
||||
template<typename T>
|
||||
std::string format(const T& value)
|
||||
inline std::string format(const T& value)
|
||||
{
|
||||
static std::locale loc("");
|
||||
std::stringstream ss;
|
||||
@@ -21,7 +21,7 @@ std::string format(const T& value)
|
||||
}
|
||||
|
||||
template<>
|
||||
std::string format(const double & value)
|
||||
inline std::string format(const double & value)
|
||||
{
|
||||
static std::locale loc("");
|
||||
std::stringstream ss;
|
||||
|
Reference in New Issue
Block a user