Make QualTypeOrdering::operator() const

llvm-svn: 58097
This commit is contained in:
Douglas Gregor 2008-10-24 16:48:10 +00:00
parent cea4e74340
commit 70dc759f14
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ namespace clang {
/// 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());
}
};