This fixes some problems when building ClangDiagnostics.cpp on Visual Studio 2017 RC. As far as I understand, there was a change in the implementation of the constructor for std::vector with two iterator parameters, which in our case causes an attempt to dereference const Iterator objects. Since there was no overload for a const Iterator, the compile would fail.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
You may also want to look at DenseMap's iterator, which at the moment has no non-const overload of operator* and operator-> -- both of these return a non-const reference out of the const operator.
Comment Actions
Sorry for the noise, I'm not sure what I did for Phabricator to think I updated the revision. But it looks like the review still shows the most recent revision.