delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/17:32:47

Date: Tue, 08 Apr 1997 09:00:51 +1200
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: funny re user-defined ++ and -- operators
To: Anthony DOT Appleyard AT umist DOT ac DOT uk
Cc: DJGPP AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <33496083.4938@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <4C4D410EC4 AT fs2 DOT mt DOT umist DOT ac DOT uk>

Anthony.Appleyard wrote:
>   (1) Line 10 used `--', but the warning re line 10 said `++'.

Minor bug in cc1plus I guess.

>   (2) Do these warnings now mean that now I can declare distinct postfix and
> prefix ++ and -- operators to use with classes? If so, how?

operator++(int) is postfix
operator++() is prefix

same for --

Bill
-- 
Leave others their otherness.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019