S
Steven T. Hatton
If I try to assign a variable of class type to itself, can I expect the
(default) assignment operator to do nothing? I'm not asking if the result
will be that the object is unchanged. I'm asking if it will 'go through
the motions' of assignment. That is, will it touch all the member fields
with an assignment of the current data to itself?
--
"If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true." - Bertrand
Russell
(default) assignment operator to do nothing? I'm not asking if the result
will be that the object is unchanged. I'm asking if it will 'go through
the motions' of assignment. That is, will it touch all the member fields
with an assignment of the current data to itself?
--
"If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true." - Bertrand
Russell