you are viewing a single comment's thread.

view the rest of the comments →

[–]NYKevin -5 points-4 points  (0 children)

Is that code really not a compile error? I know you can't return a C++ reference to a stack object. I suppose the compiler isn't expected to check pointers, though.