Skip to content

V2#543

Merged
beached merged 9 commits intomasterfrom
v2
Mar 13, 2025
Merged

V2#543
beached merged 9 commits intomasterfrom
v2

Conversation

@beached
Copy link
Copy Markdown
Owner

@beached beached commented Mar 13, 2025

Added more numeric_limits template variables like max_value

Redesigned `daw::poly_value` to use an internal storage abstraction, removing reliance on raw pointers and function-based copying. This change consolidates type safety, ensures better resource management, and reduces API complexity. Updated tests accordingly to align with the revised implementation.
Methods involving unchecked operations were renamed to include "_unsafe" in their names.
Renamed `type` to `value_type` and added clearer type aliases for `daw::constant` that are closer to `std::integral_constant`. Updated related static assertions and deprecated the `_c` literal in favor of `constant_v`.
Updated the `constant` template and its members to use `decltype(auto)` for improved type deduction and flexibility. Removed the deprecated user-defined literal operator and related code.
Replaced `decltype(auto)` with `auto` for both the template parameter and the `value` member.
@beached beached merged commit 21792e6 into master Mar 13, 2025
8 checks passed
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