AZStd::ref prevented compiler from using RVO
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -109,7 +109,7 @@ namespace ScriptEventData
|
||||
{
|
||||
VersionedProperty property = VersionedProperty("Void");
|
||||
property.Set<const VoidType>(VoidType {});
|
||||
return AZStd::ref(property);
|
||||
return property;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user