Copy Constructor w/gcc411

John Love-Jensen eljay@adobe.com
Fri Feb 9 12:01:00 GMT 2007


Hi Phy,

> What am I doing wrong WRT gcc411?

You are doing nothing wrong WRT gcc411.

What you are doing is wrong WRT C++.

C++ requires accessibility of the copy constructor for the temporary, even
though the copy constructor was eliminated.

You can work around that issue by making a named variable and passing in the
named variable to the function.

HTH,
--Eljay



More information about the Gcc-help mailing list