I have declared and initialized a constant char array within a class:
class grid {
const char test[11] = {'s', 'e', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
My code works, but I keep getting compiler warnings:
non static data member initializers only available with C++11
and
extended initializer lists only available with C++11
I know that this isn't an issue because I'm compiling to C++11 standard, but I'm curious as to what is pre C++11 about my code.
I am hoping someone can give me some insight and suggest what I can do to make this code C++98 "friendly".
Also as requested, my compiler command:
> g++ -o test main.cpp