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.
C4354
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4354
 
     'reference' : initialization of reference member requires a
     temporary variable
 
     There was an attempt to initialize a member that was a reference.
     This condition causes an error under the default /Ze command-line
     option.
 
     The compiler created a temporary stack variable to perform the
     initialization. Since the stack variable will be eliminated after
     the termination of the constructor, the pointer will be invalid.
 
     This warning may be avoided by initializing the member instead of
     its reference.
                                    -♦-