The dynamically created array of objects need to use a non-default constructor, and the problem I\'m running into I think is the syntax. In my mind, the fact that I\'m able
There is an easy way out of this problem: add a default constructor to IntegerSet
that does not acquire memory and any other resources. This way you can allocate an array of IntegerSet
with new
and then fill each element of the array on the next step.
Even better solution: use std::vector
and emplace_back() to initialize each element of the array using a non-default constructor.