C++11 tidying.
[dcpomatic.git] / src / wx / confirm_kdm_email_dialog.cc
index df6131fe1d05005b88631c6ed0460acd0ccd4df3..7709442c917735f025ab4bd813d0ac5c173d9d01 100644 (file)
 #include "static_text.h"
 #include "check_box.h"
 #include "lib/config.h"
-#include <boost/foreach.hpp>
 
 using std::list;
 using std::string;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 ConfirmKDMEmailDialog::ConfirmKDMEmailDialog (wxWindow* parent, list<string> emails)
        : QuestionDialog (parent, _("Confirm KDM email"), _("Send emails"), _("Don't send emails"))
 {
        wxString message = _("Are you sure you want to send emails to the following addresses?\n\n");
-       BOOST_FOREACH (string i, emails) {
+       for (auto i: emails) {
                message += "\t" + std_to_wx (i) + "\n";
        }