aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-07-21 06:26:00 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-07-21 06:26:00 +0000
commit8d366c0e347ab600ac09e2ba9b676d12017a448a (patch)
tree434e7a303f6cf58bed108e6fdbdd15b87c0a3edc
parent4110e1399bf940317cee58d6a48a92f7b7a4ce54 (diff)
For some reason I don't fully comprehend, the MSVC debug build will fail with a huge 50+ lines template error message if PreprocessingRecord::iterator has no operator<()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135670 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/PreprocessingRecord.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/PreprocessingRecord.h b/include/clang/Lex/PreprocessingRecord.h
index 7b233a07a3..22a51665b4 100644
--- a/include/clang/Lex/PreprocessingRecord.h
+++ b/include/clang/Lex/PreprocessingRecord.h
@@ -376,6 +376,10 @@ namespace clang {
return X.Position == Y.Position;
}
+ friend bool operator<(const iterator &X, const iterator &Y) {
+ return X.Position < Y.Position;
+ }
+
friend bool operator!=(const iterator &X, const iterator &Y) {
return X.Position != Y.Position;
}