RAD Studio
ContentsIndex
PreviousUpNext
E2364: Attempting to return a reference to a local object

You attempted to return a reference to a temporary object in a function that returns a reference type. This may be the result of a constructor or a function call. 

This object will disappear when the function returns, making the reference illegal.

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