Wrong iter type fails on gcc 4.6