Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/include/llvm/ADT/STLExtras.h | ||
|---|---|---|
| 1525 | Do we need to provide a default for Pred (aka. PredTy)? If so, is a function pointer really what we want? | |
| llvm/include/llvm/ADT/STLExtras.h | ||
|---|---|---|
| 1525 | sadly Pred can't be deduced from a default argument, so we need to specify a default template argument as well. do you see any particular issues or limitation with Pred being a function pointer when no Predicate is provided ? | |
Comment Actions
gcc and clang generate exactly the same code before and after the patch https://godbolt.org/z/Zv4-Dg
Do we need to provide a default for Pred (aka. PredTy)? If so, is a function pointer really what we want?