Missed a set of braces for BOOST_FOREACH