mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
Changed: Improve toString(const bool &val)...
This commit is contained in:
parent
f308074a24
commit
b9dc716370
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ inline std::string toString(const size_t &val) { return toString("%u", val); }
|
||||||
|
|
||||||
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); }
|
||||||
inline std::string toString(const bool &val) { return toString("%u", val?1:0); }
|
inline std::string toString(const bool &val) { return val ? "1":"0"; }
|
||||||
inline std::string toString(const std::string &val) { return val; }
|
inline std::string toString(const std::string &val) { return val; }
|
||||||
|
|
||||||
// stl vectors of bool use bit reference and not real bools, so define the operator for bit reference
|
// stl vectors of bool use bit reference and not real bools, so define the operator for bit reference
|
||||||
|
|
Loading…
Reference in a new issue