SyntaxFix
Write A Post
Hire A Developer
Questions
You can only return non-local objects by reference. The destructor may have invalidated some internal pointer, or whatever.
Don't be afraid of returning values -- it's fast!