boost_foreach already has the object, in this case the WindowPtr