- list<string> to;
- to.push_back (config->notification_to ());
- Emailer email (config->notification_from(), to, config->notification_subject(), _body);
- BOOST_FOREACH (string i, config->notification_cc()) {
+ Emailer email (config->notification_from(), { config->notification_to() }, config->notification_subject(), _body);
+ for (auto i: config->notification_cc()) {