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;
       }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to