With BOOST_FOREACH this would look nicer :) Also no iterator de-referencing needed