[cfe-commits] r58097 - /cfe/trunk/include/clang/AST/TypeOrdering.h

Douglas Gregor doug.gregor at gmail.com
Fri Oct 24 09:48:11 PDT 2008


Author: dgregor
Date: Fri Oct 24 11:48:10 2008
New Revision: 58097

URL: http://llvm.org/viewvc/llvm-project?rev=58097&view=rev
Log:
Make QualTypeOrdering::operator() const

Modified:
    cfe/trunk/include/clang/AST/TypeOrdering.h

Modified: cfe/trunk/include/clang/AST/TypeOrdering.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeOrdering.h?rev=58097&r1=58096&r2=58097&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeOrdering.h (original)
+++ cfe/trunk/include/clang/AST/TypeOrdering.h Fri Oct 24 11:48:10 2008
@@ -24,7 +24,7 @@
 /// QualTypeOrdering - Function object that provides a total ordering
 /// on QualType values.
 struct QualTypeOrdering : std::binary_function<QualType, QualType, bool> {
-  bool operator()(QualType T1, QualType T2) {
+  bool operator()(QualType T1, QualType T2) const {
     return std::less<void*>()(T1.getAsOpaquePtr(), T2.getAsOpaquePtr());
   }
 };





More information about the cfe-commits mailing list