Hello. I thought I was upgrading to C++11 when I upgraded g++ to 4.9 but I still get this error:
Code:
warning: non-static data member initializers only available with -std=c++11
I created a class Dog that inherits from class Animal the difference being that Dog has:
Code:
class Dog : public Animal{
private:
string sound = "Woof";
I've confirmed my version is 4.9 with g++ --version
something else to do?