@@ -542,7 +542,8 @@ SomeNamespace::AbstractClass::~AbstractClass()
542542
543543TestProperties::TestProperties () : Field(0 ), _refToPrimitiveInSetter(0 ),
544544 _getterAndSetterWithTheSameName(0 ), _setterReturnsBoolean(0 ),
545- _virtualSetterReturnsBoolean(0 ), _conflict(Conflict::Value1)
545+ _virtualSetterReturnsBoolean(0 ), _conflict(Conflict::Value1),
546+ ConstRefField(Field)
546547{
547548}
548549
@@ -552,10 +553,22 @@ TestProperties::TestProperties(const TestProperties& other) : Field(other.Field)
552553 _getterAndSetterWithTheSameName(other._getterAndSetterWithTheSameName),
553554 _setterReturnsBoolean(other._setterReturnsBoolean),
554555 _virtualSetterReturnsBoolean(other._virtualSetterReturnsBoolean),
555- _conflict(other._conflict)
556+ _conflict(other._conflict), ConstRefField(other.ConstRefField)
556557{
557558}
558559
560+ TestProperties& TestProperties::operator =(const TestProperties& other)
561+ {
562+ Field = other.Field ;
563+ FieldValue = other.FieldValue ;
564+ _refToPrimitiveInSetter = other._refToPrimitiveInSetter ;
565+ _getterAndSetterWithTheSameName = other._getterAndSetterWithTheSameName ;
566+ _setterReturnsBoolean = other._setterReturnsBoolean ;
567+ _virtualSetterReturnsBoolean = other._virtualSetterReturnsBoolean ;
568+ _conflict = other._conflict ;
569+ return *this ;
570+ }
571+
559572int TestProperties::getFieldValue ()
560573{
561574 return Field;
0 commit comments