From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: funny re user-defined ++ and -- operators Date: Thu, 10 Apr 1997 22:47:44 -0700 Organization: Alcyone Systems Lines: 24 Message-ID: <334DD080.3FAE059F@alcyone.com> References: <4C4D410EC4 AT fs2 DOT mt DOT umist DOT ac DOT uk> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Anthony.Appleyard wrote: > t$.cc: In function `int main()': > t$.cc:9: warning: no `operator++ (int)' declared for postfix `++', using > prefix operator instead > t$.cc:9: warning: no `operator++ (int)' declared for postfix `++', using > prefix operator instead > t$.cc:10: warning: no `operator++ (int)' declared for postfix `++', using > prefix operator instead > t$.cc:10: warning: no `operator++ (int)' declared for postfix `++', using > prefix operator instead These are legitimate warnings (probably they should be errors, though); you haven't defnied a postfix operator ++ or operator --. To distinguish between postfix and prefix operators, define them as taking an argument of type int (you never have to use it). -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "The future / is right there." / Bill Moyers