I am defining a member variable like this:
float m_Colors[4];
In the constructor I want to initialize it like this:
m_Color = {0.0f, 0.0f, 0.0f, 1.0f};
Even though I have done this a million times before on this particular occasion I get the error "too many initializer values". How could on these two very simple lines of code possibly be something wrong? Please englighten me.
m_Colors<->m_Color? Please show your exact code (a minimal reproducible example).std::arrayfor example, not a C-like array.=syntax in the constructor iirc