From kde-devel Mon Sep 15 18:12:49 2003 From: Nicolas Goutte Date: Mon, 15 Sep 2003 18:12:49 +0000 To: kde-devel Subject: Re: strange declaration errors in kicontheme.h (3.1.x) X-MARC-Message: https://marc.info/?l=kde-devel&m=106365000007646 Gcc seems not to want to do this. So my info is outdated. Have a nice day! On Monday 15 September 2003 18:09, Nicolas Goutte wrote: > Well, I had learnt that you define the operator without int and then it is > the job of the compiler. > > It should know to output, as needed, either > object++ > return=object; > > or > return=object; > object++; > > I do not know if it is right or wrong, as I do not remember where I learnt > it. > > Have a nice day! > > On Monday 15 September 2003 17:07, Guillaume Laurent wrote: > > On Monday 15 September 2003 16:45, Nicolas Goutte wrote: > > > The code is definig a different operator for > > > ++x > > > and for > > > x++ > > > > > > It seems that gcc does not like that. > > > > I hope not. :-) > > > > > I do not understand why but perhaps you can remove one of the two > > > operator definitions. (It is seldom needed to have both but sometimes > > > you must be careful to program it.) > > > > You pretty much always have to have both. They don't return the same > > result. > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > >> unsubscribe << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<