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