Const char foo[] = "gives me an error"

The problem seems to occur because the flexible array (no size specified) is in a class.

I don't know what the proper solution is, but you could always declare the array with an explicit size, particularly as it is a const so its contents will not change

1 Like