title: Initialize values of an array that is within a struct
body: <p>I have a struct called <code>member</code>. Within <code>member</code> I have a <code>std::string</code> array called <code>months</code> that I would like to initialize to default values. This is how I am doing it currently:</p>
  
  <pre><code>template &lt;typenameT&gt;                                                                                               
  struct member                                                                                                       
  {                                                                                                                   
  
      std::string months[12];                                                                                         
      std::string name;                                                                                               
      T hours_worked[12];                                                                                             
      T dues[12];                                                                                                     
  
      member() : months{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} {};    
  };
  </code></pre>
  
  <p>However, whenever I compile I get this warning message:</p>
  
  <pre><code>warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x 
  </code></pre>
  
  <p>How can I do the initialization properly and get rid of this error message?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I should of made my question more clear. I need compile this program on a older compiler and the <code>-std=c++0x</code> flag option will not be available to me. How can I do this correctly without using the flag.</p>