Fixes for compile failures with Clang on Windows (#532)

* Fix compile errors when building with Clang.

* Fix for clang-based unity builds
This commit is contained in:
Chris Burel
2021-05-03 22:46:28 -07:00
committed by GitHub
parent edf8ab4822
commit 31885753cb
14 changed files with 64 additions and 10 deletions
@@ -816,7 +816,7 @@ namespace AZ
template<size_t Index>
static void ReflectUnpackMethodFold(BehaviorContext::ClassBuilder<ContainerType>& builder)
{
AZStd::string methodName = AZStd::string::format("Get%ld", Index);
const AZStd::string methodName = AZStd::string::format("Get%zu", Index);
builder->Method(methodName.data(), [](ContainerType& value) { return AZStd::get<Index>(value); })
->Attribute(AZ::Script::Attributes::ExcludeFrom, AZ::Script::Attributes::ExcludeFlags::All)
->Attribute(AZ::ScriptCanvasAttributes::TupleGetFunctionIndex, Index)