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

Forward-declare best::span #28

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Forward-declare best::span #28

merged 1 commit into from
Jul 22, 2024

Conversation

mcy
Copy link
Owner

@mcy mcy commented Jul 22, 2024

With a little bit of cleverness, we can add best::span to the fwd.h header.

The primary obstacle was that it has a best::option<size_t> template parameter, which is not defined until way later. However, by making that size_t dependent on the first template parameter, we eliminate this problem by forcing two-phase lookup.

@mcy mcy merged commit 8d4180b into main Jul 22, 2024
3 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