Im trying something like this (which doesnt compile):
struct mystruct {
somestruct arr[4];
mystruct(somestruct val) : arr[0](val), arr[1](val), arr[2](val), arr[3](val) {}
};
How is this best done in c++ ?
Note: i might want to set only some of the array elements with this method.