From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Smith To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3171: Copy constructor does not accept parameter by value Date: Wed, 13 Jun 2001 13:56:00 -0000 Message-id: <20010613205602.6142.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00601.html List-Id: The following reply was made to PR c++/3171; it has been noted by GNATS. From: Ross Smith To: "Arun Saini , Gurgaon" Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/3171: Copy constructor does not accept parameter by value Date: Thu, 14 Jun 2001 08:52:57 +1200 "Arun Saini , Gurgaon" wrote: > > >Number: 3171 > >Category: c++ > >Synopsis: Copy constructor does not accept parameter by value Not a bug. Your assignment operator (not copy constructor, although that has the same problem) takes a non-const reference argumnt, and therefore can't accept a temporary on the RHS. (I'll grant you the error message is a trifle misleading, but I don't think that's going to be considered a high priority bug at this point.) -- Ross Smith The Internet Group, Auckland, New Zealand ======================================================================== "Hungarian notation is the tactical nuclear weapon of source code obfuscation techniques." -- Roedy Green