Hi list! I was having a discussion with a coworker earlier today about whether it's safe to say that:
> MyClass some_function()
> {
> MyClass k(/*possibly some arguments here*/);
>
> // Fill up k somehow.
>
> return k;
> }
will never call MyClass' copy constructor, assuming recent versions of
gcc (4.*) and optimizations >= -O1.
Assuming these constraints, are there any cases where the copy
constructor _will_ be called?
- Clark
