This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Passing temprary by reference requires copy constructor in 3.4?
On Nov 26, 2004, at 2:55 PM, Mikael Kilpeläinen wrote:
On Friday 26 November 2004 21:16, Andrew Pinski wrote:
It does not require the copy constructor, just requires it be
accessible.
I would read the changes page for 3.4 which documents why this
changed.
Mainly this is required by the C++ standard.
Indeed, however seems that std commitee is removing the restriction.
Hence I
would like to see a flag to disable the error (if there is not one
already
and I am just not aware of it). I am refering to the DR 391.
Why, the DR is still active so GCC is correct as of right now.
If and when the DR goes to defect, we will implement the needed
change. But currently GCC is following the standard.
Thanks,
Andrew Pinski