>
> 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?!


Get news, entertainment and everything you care about at Live.com. Check it out!