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

Support array parameters #4

Open
Jelle-Nauta opened this issue Oct 10, 2021 · 0 comments
Open

Support array parameters #4

Jelle-Nauta opened this issue Oct 10, 2021 · 0 comments

Comments

@Jelle-Nauta
Copy link
Contributor

Functions with array parameters are currently ignored because they would lead to code like:

auto data1= provider.ConsumeIntegral<char[16]>();

Proposal: handle array-parameters as a special case, e.g. generating code like:

char data1[16];
for (size_t idx = 0; idx < 16; ++idx) {
    data1[idx] = provider.ConsumeIntegral<char>();
}

There may be a more elegant way to do this, but I don't see it at the moment.

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

No branches or pull requests

1 participant