
14 May
2008
14 May
'08
2:03 p.m.
The problem with this code is that you are returning a reference > to data that might be immediately invalidated. A push_back via > another thread can cause the referenced memory to no longer be valid. Does push_back() really invalidate iterators to *previous* vector elements?!
News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx