Merge pull request #2656 from nemerle/versioned_property_redundant_ref
AZStd::ref prevented compiler from using RVO
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