RAD Studio
ContentsIndex
PreviousUpNext
E2357: Reference initialized with 'type1', needs lvalue of type 'type2' (C++)

A reference variable that is not declared constant must be initialized with an lvalue of the appropriate type. 

In this case, the initializer either wasn't an lvalue, or its type didn't match the reference being initialized.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!