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

Add support for non-string arrays #8

Open
BigETI opened this issue Oct 26, 2020 · 0 comments
Open

Add support for non-string arrays #8

BigETI opened this issue Oct 26, 2020 · 0 comments

Comments

@BigETI
Copy link

BigETI commented Oct 26, 2020

There are no ParamCast<T> template overloads for non-string arrays. Collections such as std::vector<cell> or std::array<cell, N> could be used to interface with those parameters. std::array<cell, N> can be used if the expected size of an array is known at compile-time.

Some template overload ideas:

Immutable array:

const std::vector<cell>&

or

const std::array<cell, N>&

Mutable array:

std::vector<cell>&

or

std::vector<cell>*

or

std::array<cell, N>&

or

std::array<cell, N>*
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