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.