Details
Details
- Reviewers
- huixie90 - ldionne 
- Group Reviewers
- Restricted Project 
- Commits
- rGb8d54d1d6aca: [libc++][ranges][NFC] Test that range algorithms support iterators requiring…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp | ||
|---|---|---|
| 119 | binary_func seem to return bool and transform would write these bools to the output. I guess it works for the int overload because bool is convertible to int. But for MoveOnly overload, it probably doesn't work. | |
Comment Actions
I'm happy with this approach (using a template and if constexpr to opt-out a few checks). However, if we end up having to add a lot more if constexpr, I would strongly consider copy-pasting the function instead to avoid adding too much logic in the tests. For the sake of keeping tests easy to validate.
binary_func seem to return bool and transform would write these bools to the output. I guess it works for the int overload because bool is convertible to int. But for MoveOnly overload, it probably doesn't work.