This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Class casting
- From: John Love-Jensen <eljay at adobe dot com>
- To: Greg Davey <mailforroot at turbodiesel360 dot cjb dot net>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 02 Jul 2003 12:50:01 -0500
- Subject: Re: Class casting
Hi Greg,
Change it to...
C(const A& a) : initialize....{do Stuff;}
The const keyword is important. Temporaries are not allowed there,
otherwise. It's in the C++ language specification.
--Eljay