Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Fix bug in final eval_if branch in iterator_category_to_traversal.h metafunctions #1683

Merged

Conversation

ericniebler
Copy link
Collaborator

Whether this is actually a bug or not depends on intent: if the intent is to force a hard error if we reach the final eval_if branch, then the code is correct as-is. If, however, the intent is for the metafunctions to evaluate to void as I suspect, then this is a bug.

… metafunctions

Whether this is actually a bug or not depends on intent: if the intent is to force a hard error if we reach the final `eval_if` branch, then the code is correct as-is. If, however, the intent is for the metafunctions to evaluate to `void` as I suspect, then this is a bug.
@ericniebler ericniebler requested a review from alliepiper May 9, 2022 20:37
@ericniebler ericniebler added P1: should have Necessary, but not critical. area: iterators Related to Thrust's fancy iterators. labels May 9, 2022
@ericniebler
Copy link
Collaborator Author

run tests

Copy link
Collaborator

@alliepiper alliepiper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, agreed that the intent was likely to alias void rather than error out.

@alliepiper alliepiper added this to the 2.0.0 milestone May 10, 2022
@alliepiper alliepiper added the type: bug: functional Does not work as intended. label May 10, 2022
@ericniebler ericniebler merged commit aef99dc into NVIDIA:main May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: iterators Related to Thrust's fancy iterators. P1: should have Necessary, but not critical. type: bug: functional Does not work as intended.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants