Skip to content

Adds missing constexpr to copy and move constructors #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timburculosis
Copy link

According to the standard the copy and move constructors are constexpr, but they were not marked as such in mpark/variant. Marking them and the functions they rely on as constexpr enables their use in CUDA kernels.

@timburculosis timburculosis force-pushed the bugfix/constexpr_move_copy branch from 617baf2 to 9b8ce41 Compare August 6, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant