mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Added: define the toString() for size_t
This commit is contained in:
parent
f984c1a142
commit
44d9dbc390
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