Re: Copy Constructor w/gcc411

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux