Skip to content

Null references used for type dispatch #709

Closed

Description

@dawagner

Here: https://github.com/thrust/thrust/blob/417d78471dadefa3087ff274e64f43ce74acfd3d/thrust/detail/reference.inl#L120 and at some other places in this file and also in its associated .h file, null pointers are created and passed to functions which are known to dereference them.

According to the comments and by looking at how they are ultimately used, it seems that we only care about the type. Is there anything that prevents using meta-programmation instead of passing actual, invalid values?

Activity

  1. added
    thrust
    on Feb 22, 2023
  2. transferred this issue fromNVIDIA/thruston Nov 8, 2023
  3. moved this to Todo in CCCLon Jan 17, 2026
  4. gevtushenko commented on Oct 10, 2026

    @gevtushenko
    Collaborator

    This was fixed by #4226

  5. moved this from Done to In Progress in CCCLon Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    thrust

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions