M
mescaline
Hi,
I can't understand why there is a "const" for a copy constructor
declaration:
X(const X & X1)
When I deine my Copy ctor to be X(X& X1) i.e. avoiding the const still
things remain the same. However every example I see, there is this
extra "const".
Why is adding the const important here? Any explanations welcome
m
I can't understand why there is a "const" for a copy constructor
declaration:
X(const X & X1)
When I deine my Copy ctor to be X(X& X1) i.e. avoiding the const still
things remain the same. However every example I see, there is this
extra "const".
Why is adding the const important here? Any explanations welcome
m