title: Vector of Structures
body: <p>I have some code given to me by another person in which we have a structure</p>
  
  <pre><code>struct Pair {
      string s1;
      string s2;
      bool equivalent;
    };
  </code></pre>
  
  <p>Then he sets up a vector of these structs hard coded</p>
  
  <pre><code>std::vector&lt;Pair&gt; PairID;
  
    staticdata() {
        PairID={{"string","string2",true}, 
        {"string","string3",true}, 
        {"string","string4",false}, 
        {"string","string7",false}, 
        {"string3","string8",false}
      };
      }
  </code></pre>
  
  <p>Unfortunately my compiler is complaining on the line PairID={{"string","string2",true}, </p>
  
  <p>Why is this? He suggested to compile using -std=c++0x but my compiler (gcc 4.2) does not support this. Is there an easy way to convert the code so it works? Why is it failing??</p>
  
  <p>I am using Mac OSX and would prefer not to update my compiler</p>