This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Operator overloading problem
- From: "Andrea \"Fyre Wyzard\" Bocci" <fwyzard at inwind dot it>
- To: Aïcha & Didier Rizzotti <rizzotti at freesurf dot ch>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 18:11:35 +0100
- Subject: Re: Operator overloading problem
Not sure (you didn't post vector2.h :-, so I couldn't try it) but - you can
try to declare
vector2::vector2(vector2 &v) : vector(v.dim) //Constructeur de recopie
as
vector2::vector2(const vector2 &v) : vector(v.dim) //Constructeur de recopie
and see if that solve the issue.
HTH,
fwyzard
(PS. Send questions like this to gcc-help@..., not gcc@..., thy are more
likey to get answers :-)