[llvm-commits] CVS: llvm/include/llvm/ADT/SetVector.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 13 08:11:37 PDT 2004
Changes in directory llvm/include/llvm/ADT:
SetVector.h updated: 1.8 -> 1.9
---
Log message:
Use explicit std:: qualification to avoid relying on Koenig lookup, which
VC++ does not do properly. Thanks to Morten Ofstad for the patch!
---
Diffs of the changes: (+1 -1)
Index: llvm/include/llvm/ADT/SetVector.h
diff -u llvm/include/llvm/ADT/SetVector.h:1.8 llvm/include/llvm/ADT/SetVector.h:1.9
--- llvm/include/llvm/ADT/SetVector.h:1.8 Sat Sep 11 15:38:25 2004
+++ llvm/include/llvm/ADT/SetVector.h Wed Oct 13 10:11:23 2004
@@ -112,7 +112,7 @@
/// @brief Remove an item from the set vector.
void remove(const value_type& X) {
if (0 < set_.erase(X)) {
- iterator I = find(vector_.begin(),vector_.end(),X);
+ iterator I = std::find(vector_.begin(),vector_.end(),X);
assert(I != vector_.end() && "Corrupted SetVector instances!");
vector_.erase(I);
}
More information about the llvm-commits
mailing list