A
Ariel
When passing an object by value to some function foo(), the copy
constructor gets called and inside it i see that the address of the
temporary obect is X.
but when entering to foo() i see that the address of the temporary
object is Y.
By looking at the assembly i think that the copiler copies the
temporary object to a different location after calling the copy
constructor.
Is it legal?
thanks ahead,
Ariel Erenberg
constructor gets called and inside it i see that the address of the
temporary obect is X.
but when entering to foo() i see that the address of the temporary
object is Y.
By looking at the assembly i think that the copiler copies the
temporary object to a different location after calling the copy
constructor.
Is it legal?
thanks ahead,
Ariel Erenberg