class Y; //not really relevant
class B
{
B(Y*);
//stuff
}
template<int SIZE> class X : public Y
{
B array[SIZE];
X();
}
I would like to call constructor of each element of array[] with this as parameter. How can I do that in pretty way? C++14 and even 17 are OK for me.