The compiler is allowed to optimize away copy construction. Just keep
that in mind. The semantics might require creating a copy but the
reality can be slightly different in the name of performance. You can
only confirm that the copy constructor is called by putting the
breakpoint in it and running under a debugger, or by introducing some
kind of side effect code and observing that the side effect takes place.
V
--
I do not respond to top-posted replies, please don't ask