Skip to content
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

Marked copy and move constructors as deleted #304

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

p-ranav
Copy link
Owner

@p-ranav p-ranav commented Nov 6, 2023

Closes #260
Closes #226

argparse::ArgumentParser is intended to be used in a single function - setup everything and parse arguments in one place. Attempting to move or copy invalidates internal references. Thus, starting with v3.0, argparse::ArgumentParser copy and move constructors are marked as delete.

@p-ranav p-ranav self-assigned this Nov 6, 2023
@p-ranav p-ranav merged commit 6a5fbf7 into master Nov 6, 2023
8 checks passed
@p-ranav p-ranav deleted the bugfix/260_segfault_copy branch November 6, 2023 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant