[cfe-commits] r135670 - /cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Francois Pichet
pichet2000 at gmail.com
Wed Jul 20 23:26:00 PDT 2011
Author: fpichet
Date: Thu Jul 21 01:26:00 2011
New Revision: 135670
URL: http://llvm.org/viewvc/llvm-project?rev=135670&view=rev
Log:
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<()
Modified:
cfe/trunk/include/clang/Lex/PreprocessingRecord.h
Modified: cfe/trunk/include/clang/Lex/PreprocessingRecord.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessingRecord.h?rev=135670&r1=135669&r2=135670&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessingRecord.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessingRecord.h Thu Jul 21 01:26:00 2011
@@ -376,6 +376,10 @@
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;
}
More information about the cfe-commits
mailing list