Fix for the overloaded toString() function that takes booleans as
parameter.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user