From aff9cccd0c2f8b0988b0b7f9ba5ea6681a608fb7 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 21 Jan 2016 10:06:35 +0100 Subject: [PATCH] Changed: Improve toString(const bool &val)... --HG-- branch : develop --- code/nel/include/nel/misc/string_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/include/nel/misc/string_common.h b/code/nel/include/nel/misc/string_common.h index 9ac55101f..e6d08bdeb 100644 --- a/code/nel/include/nel/misc/string_common.h +++ b/code/nel/include/nel/misc/string_common.h @@ -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 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; } // stl vectors of bool use bit reference and not real bools, so define the operator for bit reference