Skip to content
Commit ab65a6f5 authored by Howard Hinnant's avatar Howard Hinnant
Browse files

After years of telling people: 'If you ever find any of my code that...

After years of telling people: 'If you ever find any of my code that self-move-assigns, send me a bug report.' Somebody finally took me up on it.  vector::erase(begin(), begin()) does a self-move-assign of every element in the vector, leaving all of those elements in an unspecified state.  I checked the other containers for this same bug and did not find it.  Added test case.

llvm-svn: 179760
parent cf7c55eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment