Repository navigation
Conversation
fbusato
left a comment
There was a problem hiding this comment.
looks good. It is important to not add [[nodiscard]] to member function or free-function that can change internal or parameter states
| } | ||
|
|
||
| ::cuda::std::span<_Ty> transformed_argument() const | ||
| [[nodiscard]] ::cuda::std::span<_Ty> transformed_argument() const |
There was a problem hiding this comment.
Do we want the attribute even in the example? I'm not sure whether it's desired
There was a problem hiding this comment.
wait, do we have fully qualified names in examples ?!
There was a problem hiding this comment.
I would be fiddly to disable this just for examples. I guess it's not the end of the world on the grounds that [[nodiscard]] is good hygiene and that our examples should proselytize this when possible, but if folks are strongly against it I can go about trying to disable it.
But beware it may end up with // NOLINT, which IMHO is the worse option for examples.
There was a problem hiding this comment.
I'm probably fine with the change, just wanted to have a discussion about it :)
| [[nodiscard]] iterator begin() const | ||
| { | ||
| return PermutationIterator(first, TransformIterator(CountingIterator(0), repeat_functor(repeats))); | ||
| } | ||
|
|
||
| iterator end() const | ||
| [[nodiscard]] iterator end() const |
|
I think @gevtushenko concluded in the past that adding |
This comment has been minimized.
This comment has been minimized.
b49f033 to
52b1fe3
Compare
😬 CI Workflow Results🟥 Finished in 4h 54m: Pass: 99%/428 | Total: 15d 09h | Max: 3h 17m | Hits: 69%/556380See results here. |
Thanks for pushing on this. I agree That said, we cannot retrofit it onto existing interfaces. Adding Let's adopt |
|
Tabling until CCCL 4.0 |
I am a year ahead: #3701 |
Description
closes
Checklist