Skip to content

Commit

Permalink
Revert "Changed operator equals in sets to only be used when explicit…
Browse files Browse the repository at this point in the history
…ly generated"

This reverts commit b54eaba.
  • Loading branch information
JordanL8 committed Feb 26, 2024
1 parent e181a1b commit 6fd18ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generators/CSharp/CSharpSources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ private void GenerateFieldSetter(Field field, Class @class, QualifiedType fieldT
if (field.Type.TryGetClass(out Class fieldClass) && !(fieldClass is ClassTemplateSpecialization) && !fieldClass.IsValueType)
{
var caop = fieldClass.Methods.FirstOrDefault(m => m.OperatorKind == CXXOperatorKind.Equal);
if (caop != null && caop.IsExplicitlyGenerated)
if (caop != null && caop.IsGenerated)
{
var fieldName = ((Class)field.Namespace).Layout.Fields.First(
f => f.FieldPtr == field.OriginalPtr).Name;
Expand Down

0 comments on commit 6fd18ba

Please sign in to comment.