[llvm-commits] [llvm] r60365 - /llvm/trunk/include/llvm/ADT/STLExtras.h

Chris Lattner sabre at nondot.org
Mon Dec 1 11:45:45 PST 2008


Author: lattner
Date: Mon Dec  1 13:45:45 2008
New Revision: 60365

URL: http://llvm.org/viewvc/llvm-project?rev=60365&view=rev
Log:
don't #include <algorithm> into the llvm namespace.

Modified:
    llvm/trunk/include/llvm/ADT/STLExtras.h

Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=60365&r1=60364&r2=60365&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Mon Dec  1 13:45:45 2008
@@ -246,7 +246,9 @@
 ///
 /// NOTE: If qsort_r were portable, we could allow a custom comparator and
 /// default to std::less.
+}
 #include <algorithm>
+namespace llvm {
   
 template<class IteratorTy>
 static inline void array_pod_sort(IteratorTy Start, IteratorTy End) {





More information about the llvm-commits mailing list