xframe icon indicating copy to clipboard operation
xframe copied to clipboard

xvariable.select with an std::array

Open martinRenou opened this issue 7 years ago • 0 comments

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}}});

martinRenou avatar Jun 01 '18 09:06 martinRenou