@@ -542,7 +542,8 @@ SomeNamespace::AbstractClass::~AbstractClass()
542
542
543
543
TestProperties::TestProperties () : Field(0 ), _refToPrimitiveInSetter(0 ),
544
544
_getterAndSetterWithTheSameName(0 ), _setterReturnsBoolean(0 ),
545
- _virtualSetterReturnsBoolean(0 ), _conflict(Conflict::Value1)
545
+ _virtualSetterReturnsBoolean(0 ), _conflict(Conflict::Value1),
546
+ ConstRefField(Field)
546
547
{
547
548
}
548
549
@@ -552,10 +553,22 @@ TestProperties::TestProperties(const TestProperties& other) : Field(other.Field)
552
553
_getterAndSetterWithTheSameName(other._getterAndSetterWithTheSameName),
553
554
_setterReturnsBoolean(other._setterReturnsBoolean),
554
555
_virtualSetterReturnsBoolean(other._virtualSetterReturnsBoolean),
555
- _conflict(other._conflict)
556
+ _conflict(other._conflict), ConstRefField(other.ConstRefField)
556
557
{
557
558
}
558
559
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
+
559
572
int TestProperties::getFieldValue ()
560
573
{
561
574
return Field;
0 commit comments