Added: define the toString() for size_t
This commit is contained in:
parent
bc8339857d
commit
09d80bfb6e
1 changed files with 2 additions and 2 deletions
|
@ -204,8 +204,8 @@ inline std::string toString(const long unsigned int &val)
|
||||||
|
|
||||||
#if (SIZEOF_SIZE_T) == 8
|
#if (SIZEOF_SIZE_T) == 8
|
||||||
inline std::string toString(const size_t &val) { return toString("%"NL_I64"u", val); }
|
inline std::string toString(const size_t &val) { return toString("%"NL_I64"u", val); }
|
||||||
//#else
|
#else
|
||||||
//inline std::string toString(const size_t &val) { return toString("%u", val); }
|
inline std::string toString(const size_t &val) { return toString("%u", val); }
|
||||||
#endif
|
#endif
|
||||||
inline std::string toString(const float &val) { return toString("%f", val); }
|
inline std::string toString(const float &val) { return toString("%f", val); }
|
||||||
inline std::string toString(const double &val) { return toString("%lf", val); }
|
inline std::string toString(const double &val) { return toString("%lf", val); }
|
||||||
|
|
Loading…
Reference in a new issue