[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
David Blaikie
dblaikie at gmail.com
Wed Jul 20 23:45:00 PDT 2011
>> + 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.
More information about the cfe-commits
mailing list