My class has this member:
static std::unique_ptr<std::unique_ptr<ICommand>[]> changestatecommands;
and I cannot find the correct way to initialize this. I want the array to be initialized, but the elements uninitialized, so I can at any time write something like:
changestatecommands[i] = std::make_unique<ICommand>();
It does not matter if the array is initialized immediately at the declaration, or later in runtime. Optimally, I would like to know how to do both.