The existing implementation breaks in C++20 (sorry, see this StackOverflow answer), the new implementation works fine under all language versions.
Details
- Reviewers
- None
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This review changed just the one type, I went ahead and fixed the rest of the clang build in a bigger review.
llvm/include/llvm/ADT/DenseMap.h | ||
---|---|---|
1247–1259 | Should these use ConstIterator parameters? Guess that'd reduce the number of instantiations/versions of this function (rather than having const and non-const versions of the function instantiated)? |
llvm/include/llvm/ADT/DenseMap.h | ||
---|---|---|
1247–1259 | FYI I moved this review to https://reviews.llvm.org/D78938. The problem is, if I declared it using ConstIterator then both the iterator and const iterator versions would be declaring the same function. I don't know of a way to avoid that. |
Should these use ConstIterator parameters? Guess that'd reduce the number of instantiations/versions of this function (rather than having const and non-const versions of the function instantiated)?