As laserlight pointed out, your return of a reference is wrong here. Even though you don't get a compile error, returning references to local objects is undefined behaviour. For example:
point&...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Paul McKenzie Search: Search took 3.23 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |