From 8d366c0e347ab600ac09e2ba9b676d12017a448a Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Thu, 21 Jul 2011 06:26:00 +0000 Subject: [PATCH] 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 --- include/clang/Lex/PreprocessingRecord.h | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.40.0