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

Use const generics to remove 32 element array size restriction #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvff
Copy link

@jvff jvff commented Jul 3, 2021

This PR replaces the macro generated code for small arrays (with less than 32 elements) with const-generic code that have no size restrictions. I'm not sure if this is a desired feature, but I found it could be useful to me so I gave a shot at trying to implement it. The uniform{1..32} functions are still generated as "proxy functions" in order to keep backwards compatibility.

Replace macro generated code with const-generic code. `uniformN` methods
are still implemented to keep backwards compatibility.
@sunshowers
Copy link
Contributor

Were you interested in taking this PR @AltSysrq? I'd love to be able to use const generics for something I'm building.

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.

None yet

2 participants