Add additional 'toString' specialisation (#140)
This commit is contained in:
@@ -57,6 +57,11 @@ inline std::string toString(unsigned long long t) {
|
||||
return toString(static_cast<uint64_t>(t));
|
||||
}
|
||||
|
||||
template <typename = std::enable_if<!std::is_same<int64_t, long long>::value>>
|
||||
inline std::string toString(long long t) {
|
||||
return toString(static_cast<int64_t>(t));
|
||||
}
|
||||
|
||||
inline std::string toString(float t, bool decimal = false) {
|
||||
return toString(static_cast<double>(t), decimal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user