Passing temprary by reference requires copy constructor in 3.4?

Mikael Kilpeläinen mikael.kilpelainen@kolumbus.fi
Fri Nov 26 20:10:00 GMT 2004


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.


Mikael



More information about the Gcc mailing list