title: Extended initializer lists only available with -std=c++11 or -std=gnu++11 in c++
body: <p>I'm Getting this error here is my code in class and getting error.</p>
  
  <p>The Array is working fine without class, but when I use class I got the error</p>
  
  <pre><code>class books{
      string author[20], title[20], publisher[20];
      float price[20];
      int stock_position[20];
      public: 
      books(){
          author[20] = {"author1", "author2", "author3", "author4", "author5", "author6", "author7", "author8", "author9","author10"};
          title[20] = {"book1", "book2", "book3", "book4", "book5", "book6", "book7", "book8", "book9", "book10"};
          publisher[20] = {"publisher1,", "publisher2", "publisher3", "publisher4", "publisher5", "publisher6", "publisher7", "publisher8", "publisher9", "publisher10",};
          price[20] = {12,23,34,45,56,67,67,78,45};
          stock_position[20] = {7,6,21,23,14,5,12,32,43,06};
      }
      input(string,string);
      find();
      buy();
      edit();
      display();  
  };
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
  <pre><code>[Warning] extended initializer lists only available with -std=c++11 or
  -std=gnu++11 [Warning] extended initializer lists only available with  
  -std=c++11 or -std=gnu++11 [Error] no match for 'operator=' (operand types 
   are 'std::string {aka std::basic_string&lt;char&gt;}' and
   '&lt;brace-enclosed initializer list&gt;')
  </code></pre>
  </blockquote>