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

xvariable.select with an std::array #99

Open
martinRenou opened this issue Jun 1, 2018 · 0 comments
Open

xvariable.select with an std::array #99

martinRenou opened this issue Jun 1, 2018 · 0 comments

Comments

@martinRenou
Copy link
Member

We should say in the documentation that an other set of curly braces is needed when using select specifying the size of the selector.

// Select with an std::vector -> initializer list
auto val = var.select<join::outer>({{"abscissa", "a"}, {"ordinate", 1}});
// Select with an std::array of size 2 -> additional curly braces 
//                                        around the initializer list
auto val = var.select<join::outer, 2>({{{"abscissa", "a"}, {"ordinate", 1}}});
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