I must be losing it, but I don’t get it.
If I can do this sort of local declaration:
const Array<Colour> swatchColours = {
Colours::red,
Colours::green,
Colours::blue };
Why can’t I do this? It keeps telling me “No matching member function for call to ‘add’”:
const Array<Colour> swatchColours;
swatchColours.add(Colours::red); // No matching member function for call to 'add'
swatchColours.add(Colours::green); // No matching member function for call to 'add'
swatchColours.add(Colours::blue); // No matching member function for call to 'add'
It doesn’t work with an OwnedArray either…