Skip to content

Remove std::any from argument value storage - #103

Merged
SpectraL519 merged 3 commits into
cpp-argon-v5from
rem-any
Sep 19, 2026
Merged

SpectraL519 merged 3 commits into
cpp-argon-v5from
rem-any

Conversation

@SpectraL519

@SpectraL519 SpectraL519 commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner
  • Extracted the type-specific methods from the argument_base class to a new typed_argument_base intermediate interface
  • Removed the use of std::any from argument value storage
  • Aligned the argument class API to return the stored values directly
  • Modified the argument_parser class API to return the stored values by reference (with the exception of small trivially copyable types)
  • Removed all the std::any-related utility

@SpectraL519
SpectraL519 changed the base branch from master to cpp-argon-v5 September 19, 2026 18:33
Comment thread include/argon/detail/argument_base.hpp Outdated
Comment thread tests/include/argument_test_fixture.hpp Outdated

@SpectraL519 SpectraL519 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ok

@SpectraL519
SpectraL519 merged commit 7bebf18 into cpp-argon-v5 Sep 19, 2026
9 checks passed
@SpectraL519
SpectraL519 deleted the rem-any branch September 19, 2026 18:39
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