Add new write() method.
[libdcp.git] / tools / dcpdumpsub.cc
index 5d6668af70a3c958f4a6d05a8627d6cec54f2c5f..e0690ae53030aa80fabc56edc91373a6be0dce59 100644 (file)
@@ -36,7 +36,6 @@
 #include "decrypted_kdm_key.h"
 #include "encrypted_kdm.h"
 #include "util.h"
-#include <boost/foreach.hpp>
 #include <getopt.h>
 #include <cstdlib>
 #include <string>
@@ -115,7 +114,7 @@ main (int argc, char* argv[])
                dcp::EncryptedKDM encrypted_kdm (dcp::file_to_string (kdm_file.get ()));
                dcp::DecryptedKDM decrypted_kdm (encrypted_kdm, dcp::file_to_string (private_key_file.get()));
                bool done = false;
-               BOOST_FOREACH (dcp::DecryptedKDMKey const & i, decrypted_kdm.keys()) {
+               for (auto const& i: decrypted_kdm.keys()) {
                        if (i.id() == *sub.key_id()) {
                                sub.set_key (i.key ());
                                done = true;