The code is a for-loop, which is really new in C ++ 11. It is not implemented in GCC 4.4, unlike some other functions from C ++ 11. Try the following:
for( auto it = self->m_Fixups.begin(); it != self->m_Fixups.end(); ++it ) { const auto& fixup = *it;
The above example uses some C ++ 11 features that should be available in GCC 4.4.
As Ben Voigt noted: if you need to make the code more efficient, you can also use this slightly less compressed version:
for( auto it = self->m_Fixups.begin(), end = self->m_Fixups.end(); it != end; ++it ) { const auto& fixup = *it;
Daniel Frey
source share