C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C4620
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4620
 
     no postfix form of 'operator ++' found for type 'type', using
     prefix form
 
     There was no postfix incrememnt operator defined for the given
     type. The compiler used the overloaded prefix operator.
 
     This warning can be avoided by defining a postfix ++ operator.
     This is done by creating a two-argument version of the ++ operator
     as shown below:
 
          class prepost
          {
          public:
             prepost operator++ ()
             {
                // inline prefix routine
             };
 
             prepost operator++ ( int )
             {
                // inline postfix routine
             };
          }
                                    -♦-