[cfe-commits] r120396 - in /cfe/trunk: include/clang/Frontend/ASTUnit.h include/clang/Lex/PreprocessingRecord.h include/clang/Serialization/ASTReader.h include/clang/Serialization/ASTWriter.h lib/Frontend/ASTUnit.cpp lib/Serialization/ASTReader.c

Douglas Gregor dgregor at apple.com
Thu Jul 21 09:38:13 PDT 2011


On Jul 20, 2011, at 11:45 PM, David Blaikie wrote:

>>> +  PreprocessedEntities.insert(PreprocessedEntities.end(),
>>> +                              PPRec->begin(true), PPRec->end(true));
>> 
>> Hi, I added a operator< to PreprocessingRecord::iterator otherwise
>> MSVC will refuse to compile the insert line in DEBUG mode.
>> see r135670
> 
> That seemed a bit curious, so I went to check why: In case it wasn't
> obvious to anyone else too: it's because PreprocessingRecord::iterator
> declares itself to be random access (PreprocessingRecord.h:329) &
> looks like it is pretty much entirely random access (supports op+/-,
> etc) but just missing some of the required operations.
> 
> At a glance it looks like it's still missing op-(iterator,
> difference_type) and op-(difference_type, iterator). Easy enough to
> address should they ever be needed though, I suppose.

Thanks David and Francois. I've added the missing operations.

	- Doug



More information about the cfe-commits mailing list