Skip to content

UDLs for byte units (KiB, MiB, etc) and power-of-two#1865

Merged
spoonincode merged 3 commits intomainfrom
size_literals
Sep 3, 2025
Merged

UDLs for byte units (KiB, MiB, etc) and power-of-two#1865
spoonincode merged 3 commits intomainfrom
size_literals

Conversation

@spoonincode
Copy link
Contributor

Some simple UDL helpers for these computations. I didn't change any existing code but I could if we wanted to. Was using these inside of event related stuff; pulling them out of that branch for separate review.


using yield_function_t = optional_delegate<void()>;

//TODO: these should really be consteval, but they're getting pulled in by a few of our c++17 compiled files
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo via #1620 or #578

@spoonincode spoonincode merged commit 831afce into main Sep 3, 2025
36 checks passed
@spoonincode spoonincode deleted the size_literals branch September 3, 2025 21:00
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.

3 participants