title: Can't Create a const Member of std::pair in gcc
body: <pre><code>std::vector&lt; std::pair&lt; const QTextCharFormat, std::vector&lt; std::tr1::regex &gt; &gt; &gt; foo;
  std::vector&lt; std::pair&lt; const QTextCharFormat, std::vector&lt; std::tr1::regex &gt; &gt; &gt; bar;
  </code></pre>
  
  <p>Won't work on gcc 4.6.3 because I cannot call: <code>bar.push_back( std::make_pair( foo.first, foo.second ) );</code> This compiles and runs fine on Visual Studio, but under gcc I get:</p>
  
  <p>/usr/include/c++/4.6/bits/stl_pair.h:156:2: error: passing ‘const QTextCharFormat’ as ‘this’ argument of ‘QTextCharFormat&amp; QTextCharFormat::operator=(const QTextCharFormat&amp;)’ discards qualifiers [-fpermissive]</p>
  
  <p>Is there an intermediate that Visual Studio is skipping that gets created under gcc?</p>