RAD Studio
ContentsIndex
PreviousUpNext
E2358: Reference member 'member' needs a temporary for initialization

You provided an initial value for a reference type that was not an lvalue of the referenced type. 

This requires the compiler to create a temporary for the initialization. 

Because there is no obvious place to store this temporary, the initialization is illegal.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!