This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]