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.
C2607
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2607
 
     'identifier' : cannot implicitly convert a 'type1' to a
     nonconst 'type2'
 
     The specified type was converted to a nonconst type <type2>.
 
     The initializer for a reference to <type2> must be one of the
     following:
 
        ■ An l-value of type <type2>
 
        ■ A type derived from <type2> for which <type2> is an
          accessible base
 
     If the reference is to a const type, then an object of that
     type will be created and initialized with the initializer. A
     temporary object of type <type2> was required but could not be
     initialized with a nonconst reference <type2>&.
                                    -♦-