fixing build

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-05 14:30:04 -07:00
parent aa12434728
commit 0dc829891a
5 changed files with 10 additions and 15 deletions
+4 -3
View File
@@ -16,6 +16,7 @@
#include "CrySizer.h"
#include "CryEndian.h"
#include "TypeInfo_impl.h"
#include <AzCore/std/string/fixed_string.h>
// Traits
#if defined(AZ_RESTRICTED_PLATFORM)
@@ -131,9 +132,9 @@ const CTypeInfo&PtrTypeInfo()
// bool
AZStd::string ToString(bool const& val)
{
static AZStd::fixed_string sTrue = "true";
static AZStd::fixed_string sFalse = "false";
return val ? sTrue : sFalse;
static AZStd::fixed_string<5> sTrue = "true";
static AZStd::fixed_string<6> sFalse = "false";
return val ? sTrue.c_str() : sFalse.c_str();
}
bool FromString(bool& val, cstr s)