Skip to content

Delete default/move ctor and assignment on hash tables - #835

Open
amarkdotdev wants to merge 1 commit into
NVIDIA:devfrom
amarkdotdev:fix/delete-hash-table-move-ops
Open

Delete default/move ctor and assignment on hash tables#835
amarkdotdev wants to merge 1 commit into
NVIDIA:devfrom
amarkdotdev:fix/delete-hash-table-move-ops

Conversation

@amarkdotdev

Copy link
Copy Markdown

The owning hash table types (static_map, static_set, static_multimap, static_multiset, dynamic_map) already deleted copy construction and copy assignment, but still defaulted move construction and move assignment. Tests even work around that with unique_ptr because a moved table can silently hand off device storage.

This deletes the default constructor, move constructor, and move assignment as well, so misuse is a compile error instead of a silent failure.

Fixes #612

Owning map/set types were accidentally move-constructible and move-assignable, which can silently transfer GPU storage. Match the copy members and disable default construction too.

Fixes NVIDIA#612

Signed-off-by: Aaron <amark@g.jct.ac.il>
@copy-pr-bot

copy-pr-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@sleeepyjack sleeepyjack added P1: Should have Necessary but not critical type: improvement Improvement / enhancement to an existing function labels Aug 20, 2026
@sleeepyjack

Copy link
Copy Markdown
Collaborator

/ok to test 043b2a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1: Should have Necessary but not critical type: improvement Improvement / enhancement to an existing function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Fix issues with hash table constructors and assignment operators.

2 participants