Fix for the overloaded toString() function that takes booleans as

parameter.
This commit is contained in:
gl3nn
2014-01-18 01:07:01 +01:00
parent 97c19ece3c
commit 3941b782b8

View File

@@ -26,6 +26,7 @@
#include <sstream>
#include <irrString.h>
#include "utils/types.hpp"
#include "utils/log.hpp"
namespace StringUtils
{
@@ -75,12 +76,13 @@ namespace StringUtils
// ------------------------------------------------------------------------
/** Specialisiation for bools to return 'true' or 'false'/
*/
template<bool>
std::string toString(bool &b)
inline std::string toString(bool &b)
{
Log::info("string_utils","toString(bool) called");
return (b ? "true" : "false");
} // toString(bool)
// ------------------------------------------------------------------------
template <class T>
irr::core::stringw toWString (const T& any)