search for: n3290

Displaying 2 results from an estimated 2 matches for "n3290".

Did you mean: 3290
2011 Mar 19
0
[LLVMdev] [Patch] Fix bug in llvm::SmallVectorIml<>::insert
Johannes Schaub (litb) wrote: > This fixes a bug in SmallVectorImpl<>::insert, which were not behaving > correctly on inserting an empty range into an empty vector: > > #include <llvm/ADT/SmallVector.h> > #include <cassert> > > int main() { > llvm::SmallVector<int, 1> v, w; > llvm::SmallVector<int, 1>::iterator it = >
2011 Mar 19
2
[LLVMdev] [Patch] Fix bug in llvm::SmallVectorIml<>::insert
This fixes a bug in SmallVectorImpl<>::insert, which were not behaving correctly on inserting an empty range into an empty vector: #include <llvm/ADT/SmallVector.h> #include <cassert> int main() { llvm::SmallVector<int, 1> v, w; llvm::SmallVector<int, 1>::iterator it = v.insert(v.end(), w.begin(), w.end()); assert(it == v.end()); } The insert function(s)