Default formatter and common types into common.h

This commit is contained in:
gabi
2014-10-24 01:59:39 +03:00
parent 6080436e8b
commit 319db7bccc
9 changed files with 204 additions and 116 deletions

View File

@@ -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;