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 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