std::shared_ptr
authorCarl Hetherington <cth@carlh.net>
Sun, 20 Dec 2020 13:14:07 +0000 (14:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 7 Jan 2021 23:35:29 +0000 (00:35 +0100)
148 files changed:
benchmark/j2k_transcode.cc
benchmark/rgb_to_xyz.cc
cscript
examples/make_dcp.cc
examples/read_dcp.cc
src/asset.cc
src/asset.h
src/asset_factory.cc
src/asset_factory.h
src/asset_reader.h
src/asset_writer.h
src/atmos_asset.cc
src/atmos_asset.h
src/atmos_asset_writer.cc
src/atmos_asset_writer.h
src/colour_conversion.cc
src/colour_conversion.h
src/combine.cc
src/combine.h
src/cpl.cc
src/cpl.h
src/dcp.cc
src/dcp.h
src/decrypted_kdm.cc
src/decrypted_kdm.h
src/encrypted_kdm.cc
src/encrypted_kdm.h
src/frame.h
src/gamma_transfer_function.cc
src/gamma_transfer_function.h
src/identity_transfer_function.cc
src/identity_transfer_function.h
src/interop_load_font_node.cc
src/interop_load_font_node.h
src/interop_subtitle_asset.cc
src/interop_subtitle_asset.h
src/j2k.cc
src/j2k.h
src/modified_gamma_transfer_function.cc
src/modified_gamma_transfer_function.h
src/mono_picture_asset.cc
src/mono_picture_asset.h
src/mono_picture_asset_writer.cc
src/mono_picture_asset_writer.h
src/mono_picture_frame.cc
src/mono_picture_frame.h
src/mxf.cc
src/mxf.h
src/picture_asset.cc
src/picture_asset.h
src/picture_asset_writer.cc
src/picture_asset_writer.h
src/picture_asset_writer_common.cc
src/pkl.cc
src/pkl.h
src/reel.cc
src/reel.h
src/reel_asset.cc
src/reel_asset.h
src/reel_atmos_asset.cc
src/reel_atmos_asset.h
src/reel_closed_caption_asset.cc
src/reel_closed_caption_asset.h
src/reel_markers_asset.cc
src/reel_markers_asset.h
src/reel_mono_picture_asset.cc
src/reel_mono_picture_asset.h
src/reel_mxf.cc
src/reel_mxf.h
src/reel_picture_asset.cc
src/reel_picture_asset.h
src/reel_sound_asset.cc
src/reel_sound_asset.h
src/reel_stereo_picture_asset.cc
src/reel_stereo_picture_asset.h
src/reel_subtitle_asset.cc
src/reel_subtitle_asset.h
src/ref.cc
src/ref.h
src/rgb_xyz.cc
src/rgb_xyz.h
src/s_gamut3_transfer_function.cc
src/s_gamut3_transfer_function.h
src/smpte_load_font_node.cc
src/smpte_load_font_node.h
src/smpte_subtitle_asset.cc
src/smpte_subtitle_asset.h
src/sound_asset.cc
src/sound_asset.h
src/sound_asset_writer.h
src/sound_frame.cc
src/sound_frame.h
src/stereo_picture_asset.cc
src/stereo_picture_asset.h
src/stereo_picture_asset_writer.cc
src/stereo_picture_asset_writer.h
src/stereo_picture_frame.cc
src/stereo_picture_frame.h
src/subtitle_asset.cc
src/subtitle_asset.h
src/subtitle_asset_internal.cc
src/subtitle_asset_internal.h
src/subtitle_image.cc
src/subtitle_image.h
src/transfer_function.cc
src/transfer_function.h
src/types.h
src/util.cc
src/util.h
src/verify.cc
src/xml.h
test/asset_test.cc
test/certificates_test.cc
test/colour_conversion_test.cc
test/combine_test.cc
test/cpl_metadata_test.cc
test/cpl_ratings_test.cc
test/cpl_sar_test.cc
test/dcp_font_test.cc
test/dcp_test.cc
test/decryption_test.cc
test/encryption_test.cc
test/frame_info_hash_test.cc
test/gamma_transfer_function_test.cc
test/kdm_test.cc
test/markers_test.cc
test/mca_test.cc
test/read_dcp_test.cc
test/read_interop_subtitle_test.cc
test/read_smpte_subtitle_test.cc
test/recovery_test.cc
test/reel_asset_test.cc
test/rewrite_subs.cc
test/rgb_xyz_test.cc
test/round_trip_test.cc
test/smpte_subtitle_test.cc
test/sound_frame_test.cc
test/sync_test.cc
test/test.cc
test/test.h
test/verify_test.cc
test/write_subtitle_test.cc
tools/common.cc
tools/dcpdecryptmxf.cc
tools/dcpdiff.cc
tools/dcpinfo.cc
tools/dcprecover.cc
wscript

index cd1bd52a0fc19ce978f3acde51cd22230fc21bec..a5984a0dd5dda16e502f2af9b8f4380788ed78ea 100644 (file)
@@ -43,7 +43,7 @@
 
 using std::cout;
 using std::cerr;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 class Timer
 {
index 7b4400ec325f6b8b23f8a9c01be73c7392d79070..8c06388f2f345e2fb9e595c3ad9f2f739a9e985c 100644 (file)
@@ -38,7 +38,7 @@
 #include <stdint.h>
 
 using boost::scoped_array;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 int const trials = 256;
 
diff --git a/cscript b/cscript
index d2b0474faa8daded7e2f3a32dafe21a4eefc1392..8c1409e265b258a8da9f0e42ce004302602a7e9e 100644 (file)
--- a/cscript
+++ b/cscript
 import os
 import shutil
 
-option_defaults = { 'force-cpp11': False, 'jpeg': 'oj2' }
+option_defaults = { 'jpeg': 'oj2' }
 
 def dependencies(target, options):
-    libcxml = ('libcxml', 'c333199', {'force-cpp11': options['force-cpp11']})
+    libcxml = ('libcxml', 'c336f86')
     if (target.platform == 'windows' and target.version == 'xp') or options['jpeg'] == 'oj1':
         return (libcxml, ('openjpeg', 'f166257'), ('asdcplib', 'carl'))
     else:
@@ -60,20 +60,6 @@ def build(target, options):
     if target.debug:
         cmd += ' --enable-debug'
 
-    # Centos 7 ships with glibmm 2.50.0 which requires C++11
-    # but its compiler (gcc 4.8.5) defaults to C++97.  Go figure.
-    # I worry that this will cause ABI problems but I don't have
-    # a better solution.  Mageia 6 pulls the same stunt except it's
-    # libxml++ that requires C++11
-    force_cpp11 = False
-    if target.platform == 'linux':
-        if target.distro == 'centos' and target.version == '7':
-            force_cpp11 = True
-        if target.distro == 'mageia' and target.version == '6':
-            force_cpp11 = True
-    if force_cpp11 or options['force-cpp11']:
-        cmd += ' --force-cpp11'
-
     target.command(cmd)
     target.command('./waf build install')
 
index 734ae880329d92eb22cdb4011092ad745c0d1b6d..1705589ddea8401b558ea38d8e31b89e18693072 100644 (file)
@@ -54,10 +54,10 @@ main ()
           per second.
        */
 
-       boost::shared_ptr<dcp::MonoPictureAsset> picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1), dcp::SMPTE));
+       std::shared_ptr<dcp::MonoPictureAsset> picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1), dcp::SMPTE));
 
        /* Start off a write to it */
-       boost::shared_ptr<dcp::PictureAssetWriter> picture_writer = picture_asset->start_write ("DCP/picture.mxf", false);
+       std::shared_ptr<dcp::PictureAssetWriter> picture_writer = picture_asset->start_write ("DCP/picture.mxf", false);
 
        /* Write 24 frames of the same JPEG2000 file */
        dcp::File picture ("examples/help.j2c");
@@ -71,12 +71,12 @@ main ()
        /* Now create a sound MXF.  As before, create an object and a writer.
           When creating the object we specify the sampling rate (48kHz) and the number of channels (2).
        */
-       boost::shared_ptr<dcp::SoundAsset> sound_asset (new dcp::SoundAsset(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::SMPTE));
+       std::shared_ptr<dcp::SoundAsset> sound_asset (new dcp::SoundAsset(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::SMPTE));
        /* Here we must also say which of our channels will have "real" sound data in them */
        std::vector<dcp::Channel> active_channels;
        active_channels.push_back (dcp::LEFT);
        active_channels.push_back (dcp::RIGHT);
-       boost::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf", active_channels);
+       std::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf", active_channels);
 
        /* Write some sine waves */
        float* audio[2];
@@ -94,16 +94,16 @@ main ()
        sound_writer->finalize ();
 
        /* Now create a reel */
-       boost::shared_ptr<dcp::Reel> reel (new dcp::Reel ());
+       std::shared_ptr<dcp::Reel> reel (new dcp::Reel ());
 
        /* Add picture and sound to it.  The zeros are the `entry points', i.e. the first
           (video) frame from the assets that the reel should play.
        */
-       reel->add (boost::shared_ptr<dcp::ReelPictureAsset> (new dcp::ReelMonoPictureAsset (picture_asset, 0)));
-       reel->add (boost::shared_ptr<dcp::ReelSoundAsset> (new dcp::ReelSoundAsset (sound_asset, 0)));
+       reel->add (std::shared_ptr<dcp::ReelPictureAsset> (new dcp::ReelMonoPictureAsset (picture_asset, 0)));
+       reel->add (std::shared_ptr<dcp::ReelSoundAsset> (new dcp::ReelSoundAsset (sound_asset, 0)));
 
        /* Make a CPL with this reel */
-       boost::shared_ptr<dcp::CPL> cpl (new dcp::CPL ("My film", dcp::FEATURE));
+       std::shared_ptr<dcp::CPL> cpl (new dcp::CPL ("My film", dcp::FEATURE));
        cpl->add (reel);
 
        /* Write the DCP */
index 5b44fb51a5766acce07cb8bd19222c45fe83e5f6..6a36d00951e29d33ea3b4aa392583bdef03a3092 100644 (file)
@@ -58,39 +58,39 @@ main ()
        }
 
        std::cout << "DCP has " << dcp.cpls().size() << " CPLs.\n";
-       std::list<boost::shared_ptr<dcp::Asset> > assets = dcp.assets ();
+       std::list<std::shared_ptr<dcp::Asset> > assets = dcp.assets ();
        std::cout << "DCP has " << assets.size() << " assets.\n";
-       for (std::list<boost::shared_ptr<dcp::Asset> >::const_iterator i = assets.begin(); i != assets.end(); ++i) {
-               if (boost::dynamic_pointer_cast<dcp::MonoPictureAsset> (*i)) {
+       for (std::list<std::shared_ptr<dcp::Asset> >::const_iterator i = assets.begin(); i != assets.end(); ++i) {
+               if (std::dynamic_pointer_cast<dcp::MonoPictureAsset> (*i)) {
                        std::cout << "2D picture\n";
-               } else if (boost::dynamic_pointer_cast<dcp::StereoPictureAsset> (*i)) {
+               } else if (std::dynamic_pointer_cast<dcp::StereoPictureAsset> (*i)) {
                        std::cout << "3D picture\n";
-               } else if (boost::dynamic_pointer_cast<dcp::SoundAsset> (*i)) {
+               } else if (std::dynamic_pointer_cast<dcp::SoundAsset> (*i)) {
                        std::cout << "Sound\n";
-               } else if (boost::dynamic_pointer_cast<dcp::SubtitleAsset> (*i)) {
+               } else if (std::dynamic_pointer_cast<dcp::SubtitleAsset> (*i)) {
                        std::cout << "Subtitle\n";
-               } else if (boost::dynamic_pointer_cast<dcp::CPL> (*i)) {
+               } else if (std::dynamic_pointer_cast<dcp::CPL> (*i)) {
                        std::cout << "CPL\n";
                }
                std::cout << "\t" << (*i)->file()->leaf().string() << "\n";
        }
 
        /* Take the first CPL */
-       boost::shared_ptr<dcp::CPL> cpl = dcp.cpls().front ();
+       std::shared_ptr<dcp::CPL> cpl = dcp.cpls().front ();
 
        /* Get the picture asset in the first reel */
-       boost::shared_ptr<dcp::MonoPictureAsset> picture_asset = boost::dynamic_pointer_cast<dcp::MonoPictureAsset> (
+       std::shared_ptr<dcp::MonoPictureAsset> picture_asset = std::dynamic_pointer_cast<dcp::MonoPictureAsset> (
                cpl->reels().front()->main_picture()->asset()
                );
 
        /* Get a reader for it */
-       boost::shared_ptr<dcp::MonoPictureAssetReader> picture_asset_reader = picture_asset->start_read();
+       std::shared_ptr<dcp::MonoPictureAssetReader> picture_asset_reader = picture_asset->start_read();
 
        /* Get the 1000th frame of it */
-       boost::shared_ptr<const dcp::MonoPictureFrame> picture_frame_j2k = picture_asset_reader->get_frame(999);
+       std::shared_ptr<const dcp::MonoPictureFrame> picture_frame_j2k = picture_asset_reader->get_frame(999);
 
        /* Get the frame as an XYZ image */
-       boost::shared_ptr<const dcp::OpenJPEGImage> picture_image_xyz = picture_frame_j2k->xyz_image ();
+       std::shared_ptr<const dcp::OpenJPEGImage> picture_image_xyz = picture_frame_j2k->xyz_image ();
 
        /* Convert to ARGB */
        boost::scoped_array<uint8_t> rgba (new uint8_t[picture_image_xyz->size().width * picture_image_xyz->size().height * 4]);
index 5b64b6ccfe73ffe72bd1049a1c3e227d6d19ddff..49ec72519108a4546f557821efa156506c8d956a 100644 (file)
@@ -47,7 +47,7 @@
 
 using std::string;
 using boost::function;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
@@ -143,7 +143,7 @@ Asset::hash (function<void (float)> progress) const
 }
 
 bool
-Asset::equals (boost::shared_ptr<const Asset> other, EqualityOptions, NoteHandler note) const
+Asset::equals (std::shared_ptr<const Asset> other, EqualityOptions, NoteHandler note) const
 {
        if (_hash != other->_hash) {
                note (DCP_ERROR, "Asset: hashes differ");
index e2052d8a13948baca82149568f60267f0cbccc71..100303a1b76e3f9e2ad9ba0fa3036e5897144ed3 100644 (file)
@@ -67,7 +67,7 @@ public:
        Asset (std::string id, boost::filesystem::path file);
 
        virtual bool equals (
-               boost::shared_ptr<const Asset> other,
+               std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
                ) const;
@@ -77,7 +77,7 @@ public:
         */
        virtual void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
 
-       virtual void add_to_pkl (boost::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
+       virtual void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
 
        /** @return the most recent disk file used to read or write this asset, if there is one */
        boost::optional<boost::filesystem::path> file () const {
index 09c315d5f66a6076c7ed69d60ee91b1b3f7b3b3e..83580cbd18662c9eca41a37e0fbba5f9d6e7cca9 100644 (file)
@@ -39,9 +39,9 @@
 #include "atmos_asset.h"
 #include "compose.hpp"
 #include "asset_factory.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 shared_ptr<Asset>
index 6567154d862e6671d891339f01f615f79b7cf6df..7177c8cdf7fbd70768bc1ce3e1e51bcbcecff073 100644 (file)
@@ -33,6 +33,6 @@
 
 namespace dcp {
 
-boost::shared_ptr<Asset> asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_mxf_type);
+std::shared_ptr<Asset> asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_mxf_type);
 
 }
index 714d960c538c756452b5fa5b48fea41cd53ac5ef..d1e0f10e8faacf9e35ed2952a7d9e08c6b2d5c05 100644 (file)
@@ -39,7 +39,7 @@
 #include "crypto_context.h"
 #include <asdcp/AS_DCP.h>
 #include <boost/noncopyable.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 namespace dcp {
 
@@ -64,9 +64,9 @@ public:
                delete _reader;
        }
 
-       boost::shared_ptr<const F> get_frame (int n) const
+       std::shared_ptr<const F> get_frame (int n) const
        {
-               return boost::shared_ptr<const F> (new F (_reader, n, _crypto_context));
+               return std::shared_ptr<const F> (new F (_reader, n, _crypto_context));
        }
 
        R* reader () const {
@@ -75,7 +75,7 @@ public:
 
 protected:
        R* _reader;
-       boost::shared_ptr<DecryptionContext> _crypto_context;
+       std::shared_ptr<DecryptionContext> _crypto_context;
 };
 
 }
index 2970b8d3f7d4f5c8fff1d742829fe65880d2c6ef..8842917aabf633b15d1be6cbf746708b5ade8350 100644 (file)
@@ -78,7 +78,7 @@ protected:
        bool _finalized;
        /** true if something has been written to this asset */
        bool _started;
-       boost::shared_ptr<EncryptionContext> _crypto_context;
+       std::shared_ptr<EncryptionContext> _crypto_context;
 };
 
 }
index c31ac2d65c8374fbfc5ea54c98ae577b6f199d2a..2145d8f80140681dca8436381d08c8ee744e5e50 100644 (file)
@@ -38,7 +38,7 @@
 #include <asdcp/AS_DCP.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 AtmosAsset::AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version)
index f7794a2a2614b1c8d54102b57015c238d7faeb06..6e1894e7669a0062f1988455581910b81683d7a1 100644 (file)
@@ -48,8 +48,8 @@ public:
        AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version);
        explicit AtmosAsset (boost::filesystem::path file);
 
-       boost::shared_ptr<AtmosAssetWriter> start_write (boost::filesystem::path file);
-       boost::shared_ptr<AtmosAssetReader> start_read () const;
+       std::shared_ptr<AtmosAssetWriter> start_write (boost::filesystem::path file);
+       std::shared_ptr<AtmosAssetReader> start_read () const;
 
        static std::string static_pkl_type (Standard);
        std::string pkl_type (Standard s) const {
index 656026b4fbbea4214dd2478fb2db8452357fe663..8431086d3f23110d8584348dcd52912f71d9dafc 100644 (file)
@@ -41,7 +41,7 @@
 
 using std::min;
 using std::max;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 struct AtmosAssetWriter::ASDCPState
index c78174f1d59d9e83112633e1ce31a63e88eaee52..c031103a66f860c466a1b1f8c30ee1def4ed76d6 100644 (file)
@@ -41,7 +41,7 @@
 #include "asset_writer.h"
 #include "types.h"
 #include "atmos_frame.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 
 namespace dcp {
@@ -56,7 +56,7 @@ class AtmosAsset;
 class AtmosAssetWriter : public AssetWriter
 {
 public:
-       void write (boost::shared_ptr<const AtmosFrame> frame);
+       void write (std::shared_ptr<const AtmosFrame> frame);
        void write (uint8_t const * data, int size);
        bool finalize ();
 
@@ -69,7 +69,7 @@ private:
           ASDCP headers
        */
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        AtmosAsset* _asset;
 };
index 166910616c6b7b3d29e87268e70215781af55462..de69c21139c565dc74263087d1faa157bd263210 100644 (file)
@@ -41,7 +41,7 @@
 #include <boost/numeric/ublas/lu.hpp>
 #include <boost/numeric/ublas/io.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index c6f6f5296fa2447aed168079cff93cff21e808e2..17051bcdd9792ab406e729fb63584368f1ebd82d 100644 (file)
@@ -39,7 +39,7 @@
 #define DCP_COLOUR_CONVERSION_H
 
 #include "chromaticity.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #if BOOST_VERSION >= 106400
 #include <boost/serialization/array_wrapper.hpp>
 #endif
@@ -68,17 +68,17 @@ public:
        {}
 
        ColourConversion (
-               boost::shared_ptr<const TransferFunction> in,
+               std::shared_ptr<const TransferFunction> in,
                YUVToRGB yuv_to_rgb,
                Chromaticity red,
                Chromaticity green,
                Chromaticity blue,
                Chromaticity white,
                boost::optional<Chromaticity> adjusted_white,
-               boost::shared_ptr<const TransferFunction> out
+               std::shared_ptr<const TransferFunction> out
                );
 
-       boost::shared_ptr<const TransferFunction> in () const {
+       std::shared_ptr<const TransferFunction> in () const {
                return _in;
        }
 
@@ -106,11 +106,11 @@ public:
                return _adjusted_white;
        }
 
-       boost::shared_ptr<const TransferFunction> out () const {
+       std::shared_ptr<const TransferFunction> out () const {
                return _out;
        }
 
-       void set_in (boost::shared_ptr<const TransferFunction> f) {
+       void set_in (std::shared_ptr<const TransferFunction> f) {
                _in = f;
        }
 
@@ -142,7 +142,7 @@ public:
                _adjusted_white = boost::optional<Chromaticity> ();
        }
 
-       void set_out (boost::shared_ptr<const TransferFunction> f) {
+       void set_out (std::shared_ptr<const TransferFunction> f) {
                _out = f;
        }
 
@@ -162,7 +162,7 @@ public:
 
 protected:
        /** Input transfer function (probably a gamma function, or something similar) */
-       boost::shared_ptr<const TransferFunction> _in;
+       std::shared_ptr<const TransferFunction> _in;
        /** Conversion to use from YUV to RGB */
        YUVToRGB _yuv_to_rgb;
        Chromaticity _red;
@@ -172,7 +172,7 @@ protected:
        /** White point that we are adjusting to using a Bradford matrix */
        boost::optional<Chromaticity> _adjusted_white;
        /** Output transfer function (probably an inverse gamma function, or something similar) */
-       boost::shared_ptr<const TransferFunction> _out;
+       std::shared_ptr<const TransferFunction> _out;
 };
 
 }
index 65cd3d0b6453afc628b0176c36f1decfdad2e3c4..5c9a10877500788e5371a39cfb4f175ed8eba448 100644 (file)
@@ -53,9 +53,9 @@ using std::map;
 using std::set;
 using std::string;
 using std::vector;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 boost::filesystem::path
index 3d8a6284f3b4e290e4d83c80317b3798cbd0ce89..21acbb04816d1a0d0af8d9c4cc6d83a7eee88750 100644 (file)
@@ -48,7 +48,7 @@ void combine (
        std::string creator = String::compose("libdcp %1", dcp::version),
        std::string issue_date = LocalTime().as_string(),
        std::string annotation_text = String::compose("Created by libdcp %1", dcp::version),
-       boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<CertificateChain>()
+       std::shared_ptr<const CertificateChain> signer = std::shared_ptr<CertificateChain>()
        );
 
 }
index 81fe1fc264e18c8ca3f988ee1b0c700ce655f99a..8e87283dd41d193c6913efb3770947769129deb2 100644 (file)
@@ -59,9 +59,9 @@ using std::make_pair;
 using std::cout;
 using std::set;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 
@@ -156,7 +156,7 @@ CPL::CPL (boost::filesystem::path file)
  *  @param reel Reel to add.
  */
 void
-CPL::add (boost::shared_ptr<Reel> reel)
+CPL::add (std::shared_ptr<Reel> reel)
 {
        _reels.push_back (reel);
 }
index c1f505dfe964550594d8e22204e75e8e52a32e92..316a550458eed8ed6e11ff2b172ec9e8e184976e 100644 (file)
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -49,7 +49,7 @@
 #include <boost/filesystem.hpp>
 #include <boost/function.hpp>
 #include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <list>
 #include <vector>
 
@@ -74,32 +74,32 @@ public:
        explicit CPL (boost::filesystem::path file);
 
        bool equals (
-               boost::shared_ptr<const Asset> other,
+               std::shared_ptr<const Asset> other,
                EqualityOptions options,
                NoteHandler note
                ) const;
 
-       void add (boost::shared_ptr<Reel> reel);
+       void add (std::shared_ptr<Reel> reel);
        void add (DecryptedKDM const &);
 
        /** @return the reels in this CPL */
-       std::list<boost::shared_ptr<Reel> > reels () const {
+       std::list<std::shared_ptr<Reel> > reels () const {
                return _reels;
        }
 
        /** @return the ReelMXFs in this CPL in all reels */
-       std::list<boost::shared_ptr<const ReelMXF> > reel_mxfs () const;
-       std::list<boost::shared_ptr<ReelMXF> > reel_mxfs ();
+       std::list<std::shared_ptr<const ReelMXF> > reel_mxfs () const;
+       std::list<std::shared_ptr<ReelMXF> > reel_mxfs ();
 
        bool encrypted () const;
 
        void write_xml (
                boost::filesystem::path file,
                Standard standard,
-               boost::shared_ptr<const CertificateChain>
+               std::shared_ptr<const CertificateChain>
                ) const;
 
-       void resolve_refs (std::list<boost::shared_ptr<Asset> >);
+       void resolve_refs (std::list<std::shared_ptr<Asset> >);
 
        int64_t duration () const;
 
@@ -311,7 +311,7 @@ private:
        /* See note for _release_territory above */
        std::vector<std::string> _additional_subtitle_languages;
 
-       std::list<boost::shared_ptr<Reel> > _reels;
+       std::list<std::shared_ptr<Reel> > _reels;
 
        /** Standard of CPL that was read in */
        boost::optional<Standard> _standard;
index 381adde4546d2622804185b35cee6e8ef35ebf49..aea0596048eff51454bc023b1b483f2a538e8d66 100644 (file)
@@ -75,8 +75,8 @@ using std::make_pair;
 using std::map;
 using std::cerr;
 using std::exception;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::algorithm::starts_with;
 using namespace dcp;
@@ -311,7 +311,7 @@ DCP::equals (DCP const & other, EqualityOptions opt, NoteHandler note) const
 }
 
 void
-DCP::add (boost::shared_ptr<CPL> cpl)
+DCP::add (std::shared_ptr<CPL> cpl)
 {
        _cpls.push_back (cpl);
 }
index 8b5bd746fc991de11ea87853b5298afbe902dfcf..3eab743ec8453560dd3e825ee786640a6932e9d0 100644 (file)
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -46,7 +46,7 @@
 #include "name_format.h"
 #include "verify.h"
 #include "version.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/signals2.hpp>
 #include <string>
 #include <vector>
@@ -101,10 +101,10 @@ public:
         */
        bool equals (DCP const & other, EqualityOptions options, NoteHandler note) const;
 
-       void add (boost::shared_ptr<CPL> cpl);
+       void add (std::shared_ptr<CPL> cpl);
 
-       std::list<boost::shared_ptr<CPL> > cpls () const;
-       std::list<boost::shared_ptr<Asset> > assets (bool ignore_unresolved = false) const;
+       std::list<std::shared_ptr<CPL> > cpls () const;
+       std::list<std::shared_ptr<Asset> > assets (bool ignore_unresolved = false) const;
 
        bool encrypted () const;
 
@@ -116,11 +116,11 @@ public:
                std::string creator = String::compose("libdcp %1", dcp::version),
                std::string issue_date = LocalTime().as_string(),
                std::string annotation_text = String::compose("Created by libdcp %1", dcp::version),
-               boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<const CertificateChain> (),
+               std::shared_ptr<const CertificateChain> signer = std::shared_ptr<const CertificateChain> (),
                NameFormat name_format = NameFormat("%t")
        );
 
-       void resolve_refs (std::list<boost::shared_ptr<Asset> > assets);
+       void resolve_refs (std::list<std::shared_ptr<Asset> > assets);
 
        /** @return Standard of a DCP that was read in */
        boost::optional<Standard> standard () const {
@@ -134,7 +134,7 @@ public:
        /** @return PKLs if this DCP was read from an existing one, or if write_xml() has been called on it.
         *  If neither is true, this method returns an empty list.
         */
-       std::list<boost::shared_ptr<PKL> > pkls () const {
+       std::list<std::shared_ptr<PKL> > pkls () const {
                return _pkls;
        }
 
@@ -160,9 +160,9 @@ private:
        /** The directory that we are writing to */
        boost::filesystem::path _directory;
        /** The CPLs that make up this DCP */
-       std::list<boost::shared_ptr<CPL> > _cpls;
+       std::list<std::shared_ptr<CPL> > _cpls;
        /** The PKLs that make up this DCP */
-       std::list<boost::shared_ptr<PKL> > _pkls;
+       std::list<std::shared_ptr<PKL> > _pkls;
        /** File that the ASSETMAP was read from or last written to */
        mutable boost::optional<boost::filesystem::path> _asset_map;
 
index 1f68c2835cfc68861249a582d273a07756345f92..043eac4715186845316f69a59e98996f9b1ddf71 100644 (file)
@@ -57,7 +57,7 @@ using std::setfill;
 using std::hex;
 using std::pair;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 1cf1e0d48f2a4303b2889ad2ef571d6a97130f69..a67fdbfe2981951466183b500b397d9567621baf 100644 (file)
@@ -92,7 +92,7 @@ public:
         */
        DecryptedKDM (
                std::string cpl_id,
-               std::map<boost::shared_ptr<const ReelMXF>, Key> keys,
+               std::map<std::shared_ptr<const ReelMXF>, Key> keys,
                LocalTime not_valid_before,
                LocalTime not_valid_after,
                std::string annotation_text,
@@ -109,7 +109,7 @@ public:
         *  @param not_valid_after End time for the KDM.
         */
        DecryptedKDM (
-               boost::shared_ptr<const CPL> cpl,
+               std::shared_ptr<const CPL> cpl,
                Key key,
                LocalTime not_valid_before,
                LocalTime not_valid_after,
@@ -130,7 +130,7 @@ public:
         *  @return Encrypted KDM.
         */
        EncryptedKDM encrypt (
-               boost::shared_ptr<const CertificateChain> signer,
+               std::shared_ptr<const CertificateChain> signer,
                Certificate recipient,
                std::vector<std::string> trusted_devices,
                Formulation formulation,
index e8e8987085014297831f97880c2edcd90c783272..ca2a83460bcaa9c273869c786df14856d5de0689 100644 (file)
@@ -50,7 +50,7 @@ using std::vector;
 using std::string;
 using std::map;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::starts_with;
 using namespace dcp;
@@ -87,7 +87,7 @@ class X509Data
 public:
        X509Data () {}
 
-       explicit X509Data (boost::shared_ptr<const cxml::Node> node)
+       explicit X509Data (std::shared_ptr<const cxml::Node> node)
                : x509_issuer_serial (Signer (node->node_child ("X509IssuerSerial")))
                , x509_certificate (node->string_child ("X509Certificate"))
        {
index ddc0273a89a507455f6f926c2b74e2ce8be0ffd0..175b578f2a73e4f37e31632e0663e74fefca4fc7 100644 (file)
@@ -102,7 +102,7 @@ private:
 
        /** Construct an EncryptedKDM from a set of details */
        EncryptedKDM (
-               boost::shared_ptr<const CertificateChain> signer,
+               std::shared_ptr<const CertificateChain> signer,
                Certificate recipient,
                std::vector<std::string> trusted_devices,
                std::string cpl_id,
index 69983c4ad3768e08836cf56d3e83d71ad7328807..7aa471fd8096f645c2e0ad13aa77ae723a2c3592 100644 (file)
@@ -46,7 +46,7 @@ template <class R, class B>
 class Frame : public boost::noncopyable
 {
 public:
-       Frame (R* reader, int n, boost::shared_ptr<const DecryptionContext> c)
+       Frame (R* reader, int n, std::shared_ptr<const DecryptionContext> c)
        {
                /* XXX: unfortunate guesswork on this buffer size */
                _buffer.reset(new B(Kumu::Megabyte));
@@ -67,7 +67,7 @@ public:
        }
 
 private:
-       boost::shared_ptr<B> _buffer;
+       std::shared_ptr<B> _buffer;
 };
 
 }
index f493e81807e8097405df74a4fc6a69959311106b..c7c16f24be4281c5d4d2b76f90f3c02e6e3d0378 100644 (file)
@@ -39,8 +39,8 @@
 #include <cmath>
 
 using std::pow;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 GammaTransferFunction::GammaTransferFunction (double gamma)
index 7f25c8edce9e6778913d0574713cce7f1955d451..f1a1c13b2d1734a2a08e63ff738645045d332824 100644 (file)
@@ -51,7 +51,7 @@ public:
                return _gamma;
        }
 
-       bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction> other, double epsilon) const;
 
 protected:
        double * make_lut (int bit_depth, bool inverse) const;
index 1edc61da8085f4906ebdbf389c3bf87b85f5f9cd..ef18825bcc2a448000600f37f2179a1e6f575c04 100644 (file)
@@ -39,8 +39,8 @@
 #include <cmath>
 
 using std::pow;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 double *
index f157cd6ff4bb26c57d9ed49d248cdebc863b8937..f2313c104074de50ab066f5b2656ffbebe64edbe 100644 (file)
@@ -42,7 +42,7 @@ namespace dcp {
 class IdentityTransferFunction : public TransferFunction
 {
 public:
-       bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction> other, double epsilon) const;
 
 protected:
        double * make_lut (int bit_depth, bool inverse) const;
index 99d8a48e2e8393b8318d3963010577d8af36e2b6..a5bc14286e9bf6e2bb426527393575e9cb8d4024 100644 (file)
@@ -35,7 +35,7 @@
 #include <libcxml/cxml.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 4d53b1685df58b41efa0da24ac8cfedefae23594..17ce1893389797164bed8e8b2c2c146360c0c219 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "load_font_node.h"
 #include <libcxml/cxml.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/optional.hpp>
 
 namespace dcp {
index c6173a26d4f3283988cf81511e6fdc415c8b0033..ac3dcc98e943e7aa077e99b0c7a6963117be9ebd 100644 (file)
@@ -52,10 +52,10 @@ using std::string;
 using std::cout;
 using std::cerr;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::shared_array;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 InteropSubtitleAsset::InteropSubtitleAsset (boost::filesystem::path file)
index b34a2a28e9cd8d88aa2dc41677ceb6fd90e150c4..7ce7d175d5cb176fa1b786c07c0470365e22d6e6 100644 (file)
@@ -54,22 +54,22 @@ public:
        explicit InteropSubtitleAsset (boost::filesystem::path file);
 
        bool equals (
-               boost::shared_ptr<const Asset>,
+               std::shared_ptr<const Asset>,
                EqualityOptions,
                NoteHandler note
                ) const;
 
        void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
-       void add_to_pkl (boost::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
+       void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
 
-       std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
+       std::list<std::shared_ptr<LoadFontNode> > load_font_nodes () const;
 
        void add_font (std::string load_id, dcp::ArrayData data);
 
        std::string xml_as_string () const;
        void write (boost::filesystem::path path) const;
-       void resolve_fonts (std::list<boost::shared_ptr<Asset> > assets);
-       void add_font_assets (std::list<boost::shared_ptr<Asset> >& assets);
+       void resolve_fonts (std::list<std::shared_ptr<Asset> > assets);
+       void add_font_assets (std::list<std::shared_ptr<Asset> >& assets);
        void set_font_file (std::string load_id, boost::filesystem::path file);
 
        /** Set the reel number or sub-element identifier
@@ -123,7 +123,7 @@ private:
        std::string _reel_number;
        std::string _language;
        std::string _movie_title;
-       std::list<boost::shared_ptr<InteropLoadFontNode> > _load_font_nodes;
+       std::list<std::shared_ptr<InteropLoadFontNode> > _load_font_nodes;
 };
 
 }
index 530398318b69532249a38c5505f1c663260a4e93..032c7caa73a832bf09f4408a302598c8a2bf792c 100644 (file)
@@ -45,7 +45,7 @@
 using std::min;
 using std::pow;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::shared_array;
 using namespace dcp;
 
index fcaa28e28c28a7903c886c4f64077df7599b13dc..a5b41f3c06156cb020289899b12a9a4de5a58b0b 100644 (file)
--- a/src/j2k.h
+++ b/src/j2k.h
 
 
 #include "array_data.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <stdint.h>
 
 namespace dcp {
 
 class OpenJPEGImage;
 
-extern boost::shared_ptr<OpenJPEGImage> decompress_j2k (uint8_t* data, int64_t size, int reduce);
-extern boost::shared_ptr<OpenJPEGImage> decompress_j2k (ArrayData data, int reduce);
-extern ArrayData compress_j2k (boost::shared_ptr<const OpenJPEGImage>, int bandwith, int frames_per_second, bool threed, bool fourk, std::string comment = "libdcp");
+extern std::shared_ptr<OpenJPEGImage> decompress_j2k (uint8_t* data, int64_t size, int reduce);
+extern std::shared_ptr<OpenJPEGImage> decompress_j2k (ArrayData data, int reduce);
+extern ArrayData compress_j2k (std::shared_ptr<const OpenJPEGImage>, int bandwith, int frames_per_second, bool threed, bool fourk, std::string comment = "libdcp");
 
 }
index 7522cde7a01e281fcf10451e0fa2761b32983140..bb3886898c5a2ed2c619253f4ecb18f5832c8de8 100644 (file)
@@ -35,8 +35,8 @@
 #include <cmath>
 
 using std::pow;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 ModifiedGammaTransferFunction::ModifiedGammaTransferFunction (double power, double threshold, double A, double B)
index f0448158c39de3affaccd69bdb4651a04cb80d93..b38a16b0c824352a3043227533d5a6cd6237690a 100644 (file)
@@ -70,7 +70,7 @@ public:
                return _B;
        }
 
-       bool about_equal (boost::shared_ptr<const TransferFunction>, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction>, double epsilon) const;
 
 protected:
        double * make_lut (int bit_depth, bool inverse) const;
index 1f3dcc9d4786a8d8472f5220e6a2b06a5e9b4602..12165f7b49b4947deb7e189e61361bf7aca4b7a5 100644 (file)
@@ -45,8 +45,8 @@ using std::string;
 using std::vector;
 using std::list;
 using std::pair;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 7a1c0d0a0ceadfa0dc5008c19965cd5aa73e077d..28913f615180bccfefdeb183d8074dd9f1ee3b69 100644 (file)
@@ -59,11 +59,11 @@ public:
        explicit MonoPictureAsset (Fraction edit_rate, Standard standard);
 
        /** Start a progressive write to a MonoPictureAsset */
-       boost::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path, bool);
-       boost::shared_ptr<MonoPictureAssetReader> start_read () const;
+       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path, bool);
+       std::shared_ptr<MonoPictureAssetReader> start_read () const;
 
        bool equals (
-               boost::shared_ptr<const Asset> other,
+               std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
                ) const;
index 30a6ee96959f9c78ec3d9847b82c56c2ce47afaf..01fb11f0a482dbd676b0a2db4d91503c0bb6dd4f 100644 (file)
@@ -46,7 +46,7 @@
 #include "picture_asset_writer_common.cc"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 struct MonoPictureAssetWriter::ASDCPState : public ASDCPStateBase
index 2284cd3c9a627d089273f63db38b550e9c616d0c..2dce922ef460b40b0e603564c5e1ade98a4973e0 100644 (file)
@@ -39,7 +39,7 @@
 #define LIBDCP_MONO_PICTURE_ASSET_WRITER_H
 
 #include "picture_asset_writer.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/utility.hpp>
 #include <stdint.h>
 #include <string>
@@ -74,7 +74,7 @@ private:
        */
 
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 };
 
 }
index 6587a720d77611e96f1ac0f843439979c7fc36ea..7420193e47ec0f0701e48ac8d7207df5113b0c51 100644 (file)
@@ -47,7 +47,7 @@
 #include <asdcp/AS_DCP.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 27d52833430e9b829568535186296e15e717d087..67784509a7ba7d9169e79b95fe286c2add2238d3 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "types.h"
 #include "asset_reader.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/noncopyable.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/optional.hpp>
@@ -68,7 +68,7 @@ public:
        explicit MonoPictureFrame (boost::filesystem::path path);
        MonoPictureFrame (uint8_t const * data, int size);
 
-       boost::shared_ptr<OpenJPEGImage> xyz_image (int reduce = 0) const;
+       std::shared_ptr<OpenJPEGImage> xyz_image (int reduce = 0) const;
 
        uint8_t const * data () const;
        uint8_t* data ();
@@ -80,9 +80,9 @@ private:
        */
        friend class AssetReader<ASDCP::JP2K::MXFReader, MonoPictureFrame>;
 
-       MonoPictureFrame (ASDCP::JP2K::MXFReader* reader, int n, boost::shared_ptr<DecryptionContext>);
+       MonoPictureFrame (ASDCP::JP2K::MXFReader* reader, int n, std::shared_ptr<DecryptionContext>);
 
-       boost::shared_ptr<ASDCP::JP2K::FrameBuffer> _buffer;
+       std::shared_ptr<ASDCP::JP2K::FrameBuffer> _buffer;
 };
 
 }
index 512da8441a77afcfe14779c92f2ec48b783bb628..b6c11bb8f64db087b635694ff8422e04d21614b5 100644 (file)
@@ -53,8 +53,8 @@ using std::string;
 using std::cout;
 using std::list;
 using std::pair;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 MXF::MXF ()
index aef8b12d53f00dedee93157ccc6fc7bc94adafa0..9b9f28af834b615bdd81ddf52c289a87c9bf285f 100644 (file)
--- a/src/mxf.h
+++ b/src/mxf.h
@@ -120,7 +120,7 @@ public:
 
 protected:
        template <class P, class Q>
-       friend void start (PictureAssetWriter* writer, boost::shared_ptr<P> state, Q* mxf, uint8_t const * data, int size);
+       friend void start (PictureAssetWriter* writer, std::shared_ptr<P> state, Q* mxf, uint8_t const * data, int size);
 
        MXF ();
 
index 68af0896b245a77101fa10a6eb80fcf1e049eb0b..86741ba64ad2a1c0c2d66164ac6bce4cf76bc990 100644 (file)
@@ -52,7 +52,7 @@ using std::vector;
 using std::max;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 /** Load a PictureAsset from a file */
index cc1be9f0360cfb234d9e980339ff042b3ecdf8d8..a49d1a7df67ab33a279fbd27dbd744f73cc49c7c 100644 (file)
@@ -64,7 +64,7 @@ public:
        explicit PictureAsset (boost::filesystem::path file);
        explicit PictureAsset (Fraction edit_rate, Standard standard);
 
-       virtual boost::shared_ptr<PictureAssetWriter> start_write (
+       virtual std::shared_ptr<PictureAssetWriter> start_write (
                boost::filesystem::path file,
                bool overwrite
                ) = 0;
index 6861562e4c81441e09219e531f6ddb72bd194e11..a8dee68cae2f2668e46a9105cd870ea4350828e6 100644 (file)
@@ -40,7 +40,7 @@
 #include <stdint.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 PictureAssetWriter::PictureAssetWriter (PictureAsset* asset, boost::filesystem::path file, bool overwrite)
index f2bd611b1977aa083d8bf8e7413d959908379754..12530513bc12d90e73279ea224b2c4294f9e6730 100644 (file)
@@ -41,7 +41,7 @@
 #include "metadata.h"
 #include "types.h"
 #include "asset_writer.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/utility.hpp>
 #include <stdint.h>
 #include <string>
@@ -82,7 +82,7 @@ public:
 
 protected:
        template <class P, class Q>
-       friend void start (PictureAssetWriter *, boost::shared_ptr<P>, Q *, uint8_t const *, int);
+       friend void start (PictureAssetWriter *, std::shared_ptr<P>, Q *, uint8_t const *, int);
 
        PictureAssetWriter (PictureAsset *, boost::filesystem::path, bool);
 
index 2caadc6eea9c1f62a1e73f88fe72f78b15932a7d..6591823fb5301ff0ed296be42c17847ea8c4d110 100644 (file)
@@ -31,7 +31,7 @@
     files in the program, then also delete it here.
 */
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 namespace dcp {
 
index b2fe875be0e056b7cb833d7b03eb24558cf6866e..5fb27aab7f6b8eaf70d6ef51a3cc017192ee6fc3 100644 (file)
@@ -41,7 +41,7 @@
 #include <iostream>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 3999631874601f24cfc9daf6b9bdbdec2999caa4..a27a9a33aca7a1ccfd3222aac4dd4307fa6d09dd 100644 (file)
--- a/src/pkl.h
+++ b/src/pkl.h
@@ -64,7 +64,7 @@ public:
        boost::optional<std::string> type (std::string id) const;
 
        void add_asset (std::string id, boost::optional<std::string> annotation_text, std::string hash, int64_t size, std::string type);
-       void write (boost::filesystem::path file, boost::shared_ptr<const CertificateChain> signer) const;
+       void write (boost::filesystem::path file, std::shared_ptr<const CertificateChain> signer) const;
 
        /** @return the most recent disk file used to read or write this PKL, if there is one */
        boost::optional<boost::filesystem::path> file () const {
@@ -103,7 +103,7 @@ private:
        std::string _issue_date;
        std::string _issuer;
        std::string _creator;
-       std::list<boost::shared_ptr<Asset> > _asset_list;
+       std::list<std::shared_ptr<Asset> > _asset_list;
        /** The most recent disk file used to read or write this PKL */
        mutable boost::optional<boost::filesystem::path> _file;
 };
index 918349c1a0c8ddbfb06b54ccc461f791d8c90ad4..a8f66ae5f20f4ccfd13c46d426c16e08110b0e08 100644 (file)
@@ -62,11 +62,11 @@ using std::string;
 using std::list;
 using std::cout;
 using std::min;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
-Reel::Reel (boost::shared_ptr<const cxml::Node> node)
+Reel::Reel (std::shared_ptr<const cxml::Node> node)
        : Object (remove_urn_uuid (node->string_child ("Id")))
 {
        shared_ptr<cxml::Node> asset_list = node->node_child ("AssetList");
@@ -156,7 +156,7 @@ Reel::write_to_cpl (xmlpp::Element* node, Standard standard) const
 }
 
 bool
-Reel::equals (boost::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandler note) const
+Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandler note) const
 {
        if ((_main_picture && !other->_main_picture) || (!_main_picture && other->_main_picture)) {
                note (DCP_ERROR, "Reel: picture assets differ");
index ccad3c83229f5ee49c04d774b778d0b75e270ad2..041e1ca117e5cb1180e75e1b516e87c04efa6c70 100644 (file)
@@ -37,7 +37,7 @@
 #include "key.h"
 #include "types.h"
 #include "ref.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/function.hpp>
 #include <list>
 
@@ -68,11 +68,11 @@ public:
        Reel () {}
 
        Reel (
-               boost::shared_ptr<ReelPictureAsset> picture,
-               boost::shared_ptr<ReelSoundAsset> sound = boost::shared_ptr<ReelSoundAsset> (),
-               boost::shared_ptr<ReelSubtitleAsset> subtitle = boost::shared_ptr<ReelSubtitleAsset> (),
-               boost::shared_ptr<ReelMarkersAsset> markers = boost::shared_ptr<ReelMarkersAsset> (),
-               boost::shared_ptr<ReelAtmosAsset> atmos = boost::shared_ptr<ReelAtmosAsset> ()
+               std::shared_ptr<ReelPictureAsset> picture,
+               std::shared_ptr<ReelSoundAsset> sound = std::shared_ptr<ReelSoundAsset> (),
+               std::shared_ptr<ReelSubtitleAsset> subtitle = std::shared_ptr<ReelSubtitleAsset> (),
+               std::shared_ptr<ReelMarkersAsset> markers = std::shared_ptr<ReelMarkersAsset> (),
+               std::shared_ptr<ReelAtmosAsset> atmos = std::shared_ptr<ReelAtmosAsset> ()
                )
                : _main_picture (picture)
                , _main_sound (sound)
@@ -81,55 +81,55 @@ public:
                , _atmos (atmos)
        {}
 
-       explicit Reel (boost::shared_ptr<const cxml::Node>);
+       explicit Reel (std::shared_ptr<const cxml::Node>);
 
-       boost::shared_ptr<ReelPictureAsset> main_picture () const {
+       std::shared_ptr<ReelPictureAsset> main_picture () const {
                return _main_picture;
        }
 
-       boost::shared_ptr<ReelSoundAsset> main_sound () const {
+       std::shared_ptr<ReelSoundAsset> main_sound () const {
                return _main_sound;
        }
 
-       boost::shared_ptr<ReelSubtitleAsset> main_subtitle () const {
+       std::shared_ptr<ReelSubtitleAsset> main_subtitle () const {
                return _main_subtitle;
        }
 
-       boost::shared_ptr<ReelMarkersAsset> main_markers () const {
+       std::shared_ptr<ReelMarkersAsset> main_markers () const {
                return _main_markers;
        }
 
-       std::list<boost::shared_ptr<ReelClosedCaptionAsset> > closed_captions () const {
+       std::list<std::shared_ptr<ReelClosedCaptionAsset> > closed_captions () const {
                return _closed_captions;
        }
 
-       boost::shared_ptr<ReelAtmosAsset> atmos () const {
+       std::shared_ptr<ReelAtmosAsset> atmos () const {
                return _atmos;
        }
 
        int64_t duration () const;
 
-       void add (boost::shared_ptr<ReelAsset> asset);
+       void add (std::shared_ptr<ReelAsset> asset);
 
-       std::list<boost::shared_ptr<ReelAsset> > assets () const;
+       std::list<std::shared_ptr<ReelAsset> > assets () const;
 
        xmlpp::Element* write_to_cpl (xmlpp::Element* node, Standard standard) const;
 
        bool encrypted () const;
 
-       bool equals (boost::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandler notes) const;
+       bool equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandler notes) const;
 
        void add (DecryptedKDM const &);
 
-       void resolve_refs (std::list<boost::shared_ptr<Asset> >);
+       void resolve_refs (std::list<std::shared_ptr<Asset> >);
 
 private:
-       boost::shared_ptr<ReelPictureAsset> _main_picture;
-       boost::shared_ptr<ReelSoundAsset> _main_sound;
-       boost::shared_ptr<ReelSubtitleAsset> _main_subtitle;
-       boost::shared_ptr<ReelMarkersAsset> _main_markers;
-       std::list<boost::shared_ptr<ReelClosedCaptionAsset> > _closed_captions;
-       boost::shared_ptr<ReelAtmosAsset> _atmos;
+       std::shared_ptr<ReelPictureAsset> _main_picture;
+       std::shared_ptr<ReelSoundAsset> _main_sound;
+       std::shared_ptr<ReelSubtitleAsset> _main_subtitle;
+       std::shared_ptr<ReelMarkersAsset> _main_markers;
+       std::list<std::shared_ptr<ReelClosedCaptionAsset> > _closed_captions;
+       std::shared_ptr<ReelAtmosAsset> _atmos;
 };
 
 }
index fdc412b8be5cbbd51ff42e14faca62b84bd00e0a..5c05e33c7c00cf455dc944839f5591ff4b61ddd9 100644 (file)
@@ -45,7 +45,7 @@
 using std::pair;
 using std::string;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 07ddcc188a2faeab79d58068da40fd8738b85909..654b5a974f5e6ee4ebe7490432d675cdb978bccd 100644 (file)
@@ -41,7 +41,7 @@
 #include "object.h"
 #include "util.h"
 #include "ref.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 namespace cxml {
        class Node;
@@ -66,7 +66,7 @@ class ReelAsset : public Object
 {
 public:
        ReelAsset (std::string id, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point);
-       explicit ReelAsset (boost::shared_ptr<const cxml::Node>);
+       explicit ReelAsset (std::shared_ptr<const cxml::Node>);
 
        virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const = 0;
 
@@ -104,7 +104,7 @@ public:
                _annotation_text = at;
        }
 
-       bool asset_equals (boost::shared_ptr<const ReelAsset>, EqualityOptions, NoteHandler) const;
+       bool asset_equals (std::shared_ptr<const ReelAsset>, EqualityOptions, NoteHandler) const;
 
 protected:
 
index 958bc72cba13fbdca84c0cdb3965bb8c35f6e34d..9dccbbcb6cfdf28e0ee84b080050e93e8a0a9b9c 100644 (file)
 using std::string;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
-ReelAtmosAsset::ReelAtmosAsset (boost::shared_ptr<AtmosAsset> asset, int64_t entry_point)
+ReelAtmosAsset::ReelAtmosAsset (std::shared_ptr<AtmosAsset> asset, int64_t entry_point)
        : ReelAsset (asset->id(), asset->edit_rate(), asset->intrinsic_duration(), entry_point)
        , ReelMXF (asset, asset->key_id())
 {
 
 }
 
-ReelAtmosAsset::ReelAtmosAsset (boost::shared_ptr<const cxml::Node> node)
+ReelAtmosAsset::ReelAtmosAsset (std::shared_ptr<const cxml::Node> node)
        : ReelAsset (node)
        , ReelMXF (node)
 {
index 6fb4bf5162665ad5960e429df05bc11d7819644b..92077fc0d85f0011494539e4d4d92e0a55be03b2 100644 (file)
@@ -52,15 +52,15 @@ class AtmosAsset;
 class ReelAtmosAsset : public ReelAsset, public ReelMXF
 {
 public:
-       ReelAtmosAsset (boost::shared_ptr<AtmosAsset> asset, int64_t entry_point);
-       explicit ReelAtmosAsset (boost::shared_ptr<const cxml::Node>);
+       ReelAtmosAsset (std::shared_ptr<AtmosAsset> asset, int64_t entry_point);
+       explicit ReelAtmosAsset (std::shared_ptr<const cxml::Node>);
 
-       boost::shared_ptr<AtmosAsset> asset () const {
+       std::shared_ptr<AtmosAsset> asset () const {
                return asset_of_type<AtmosAsset> ();
        }
 
        xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelAtmosAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelAtmosAsset>, EqualityOptions, NoteHandler) const;
 
 private:
        std::string key_type () const;
index 9ddd81a6602a2e1cddf586d86b2dfec051df05b6..720362b8d5f978eb1a807820eb5d9f3292baa938 100644 (file)
 using std::string;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcp;
 
-ReelClosedCaptionAsset::ReelClosedCaptionAsset (boost::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
+ReelClosedCaptionAsset::ReelClosedCaptionAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
        : ReelAsset (asset->id(), edit_rate, intrinsic_duration, entry_point)
        , ReelMXF (asset, dynamic_pointer_cast<SMPTESubtitleAsset>(asset) ? dynamic_pointer_cast<SMPTESubtitleAsset>(asset)->key_id() : optional<string>())
 {
 
 }
 
-ReelClosedCaptionAsset::ReelClosedCaptionAsset (boost::shared_ptr<const cxml::Node> node)
+ReelClosedCaptionAsset::ReelClosedCaptionAsset (std::shared_ptr<const cxml::Node> node)
        : ReelAsset (node)
        , ReelMXF (node)
 {
index 13d50429b07be06b28660177cb5d364db2d54c76..47645a8f08ba91f937dc09569b17faac175dbb9d 100644 (file)
@@ -53,13 +53,13 @@ class SubtitleAsset;
 class ReelClosedCaptionAsset : public ReelAsset, public ReelMXF
 {
 public:
-       ReelClosedCaptionAsset (boost::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t instrinsic_duration, int64_t entry_point);
-       explicit ReelClosedCaptionAsset (boost::shared_ptr<const cxml::Node>);
+       ReelClosedCaptionAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t instrinsic_duration, int64_t entry_point);
+       explicit ReelClosedCaptionAsset (std::shared_ptr<const cxml::Node>);
 
        xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelClosedCaptionAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelClosedCaptionAsset>, EqualityOptions, NoteHandler) const;
 
-       boost::shared_ptr<SubtitleAsset> asset () const {
+       std::shared_ptr<SubtitleAsset> asset () const {
                return asset_of_type<SubtitleAsset> ();
        }
 
index 9b6d69cf08e962f311c58b13c203876e310fa34b..de73980e09cad699e1a6d2e7741ac7ff053e8642 100644 (file)
@@ -41,7 +41,7 @@ using std::string;
 using std::map;
 using std::max;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 ReelMarkersAsset::ReelMarkersAsset (Fraction edit_rate, int64_t entry_point)
index 24dff222b2a06b6c1524b5cdec2075b1308b4152..0066a27d100daac9a9966a8af9e6409019d6ecac 100644 (file)
@@ -41,10 +41,10 @@ class ReelMarkersAsset : public ReelAsset
 {
 public:
        ReelMarkersAsset (Fraction edit_rate, int64_t entry_point);
-       explicit ReelMarkersAsset (boost::shared_ptr<const cxml::Node>);
+       explicit ReelMarkersAsset (std::shared_ptr<const cxml::Node>);
 
        xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelMarkersAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelMarkersAsset>, EqualityOptions, NoteHandler) const;
 
        void set (Marker, Time);
        void unset (Marker);
index 36abb55eef8734e99d3f5f40ff75b1fa89204368..ec42919f8e98e51cfceb21ed9bde15e90be8e98f 100644 (file)
 #include <libcxml/cxml.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
-ReelMonoPictureAsset::ReelMonoPictureAsset (boost::shared_ptr<MonoPictureAsset> asset, int64_t entry_point)
+ReelMonoPictureAsset::ReelMonoPictureAsset (std::shared_ptr<MonoPictureAsset> asset, int64_t entry_point)
        : ReelPictureAsset (asset, entry_point)
 {
 
 }
 
-ReelMonoPictureAsset::ReelMonoPictureAsset (boost::shared_ptr<const cxml::Node> node)
+ReelMonoPictureAsset::ReelMonoPictureAsset (std::shared_ptr<const cxml::Node> node)
        : ReelPictureAsset (node)
 {
        node->done ();
index 099feafd997d843d2126288587dcf75a59f1d139..c996c762c9a71435435161e7ee55971d6eb6f165 100644 (file)
@@ -51,16 +51,16 @@ class MonoPictureAsset;
 class ReelMonoPictureAsset : public ReelPictureAsset
 {
 public:
-       ReelMonoPictureAsset (boost::shared_ptr<MonoPictureAsset> asset, int64_t entry_point);
-       explicit ReelMonoPictureAsset (boost::shared_ptr<const cxml::Node>);
+       ReelMonoPictureAsset (std::shared_ptr<MonoPictureAsset> asset, int64_t entry_point);
+       explicit ReelMonoPictureAsset (std::shared_ptr<const cxml::Node>);
 
        /** @return the MonoPictureAsset that this object refers to */
-       boost::shared_ptr<const MonoPictureAsset> mono_asset () const {
+       std::shared_ptr<const MonoPictureAsset> mono_asset () const {
                return asset_of_type<const MonoPictureAsset> ();
        }
 
        /** @return the MonoPictureAsset that this object refers to */
-       boost::shared_ptr<MonoPictureAsset> mono_asset () {
+       std::shared_ptr<MonoPictureAsset> mono_asset () {
                return asset_of_type<MonoPictureAsset> ();
        }
 
index fbc55cf7496225ac81da30f7e833265b2d0dda33..71b4783634bea0ece0fb9183ac6d8712abb11295 100644 (file)
@@ -39,7 +39,7 @@
 #include <libxml++/libxml++.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
index 7b4d92aaa9586092e3869166adf6d1079d74e0d6..0751418994fdd6e7e091c61d3ddd02fcd44458e5 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "ref.h"
 #include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <string>
 
 namespace cxml {
@@ -55,8 +55,8 @@ namespace dcp {
 class ReelMXF
 {
 public:
-       explicit ReelMXF (boost::shared_ptr<Asset> asset, boost::optional<std::string> key_id);
-       explicit ReelMXF (boost::shared_ptr<const cxml::Node>);
+       explicit ReelMXF (std::shared_ptr<Asset> asset, boost::optional<std::string> key_id);
+       explicit ReelMXF (std::shared_ptr<const cxml::Node>);
        virtual ~ReelMXF () {}
 
        /** @return the 4-character key type for this MXF (MDIK, MDAK, etc.) */
@@ -97,18 +97,18 @@ public:
                return _key_id;
        }
 
-       bool mxf_equals (boost::shared_ptr<const ReelMXF> other, EqualityOptions opt, NoteHandler note) const;
+       bool mxf_equals (std::shared_ptr<const ReelMXF> other, EqualityOptions opt, NoteHandler note) const;
 
 protected:
 
        template <class T>
-       boost::shared_ptr<T> asset_of_type () const {
-               return boost::dynamic_pointer_cast<T> (_asset_ref.asset ());
+       std::shared_ptr<T> asset_of_type () const {
+               return std::dynamic_pointer_cast<T> (_asset_ref.asset ());
        }
 
        template <class T>
-       boost::shared_ptr<T> asset_of_type () {
-               return boost::dynamic_pointer_cast<T> (_asset_ref.asset ());
+       std::shared_ptr<T> asset_of_type () {
+               return std::dynamic_pointer_cast<T> (_asset_ref.asset ());
        }
 
        void write_to_cpl_mxf (xmlpp::Node* node) const;
index 3052c616c67533fe6f5384a2b6313b38706199db..6e6cd035a31e4c8c87c7bae798a9fda8fcbc600a 100644 (file)
@@ -47,8 +47,8 @@
 
 using std::bad_cast;
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcp;
 
index 88729148c6fa9713e6447be1f9102ae333d12942..a1f926288533e6582900cb7acd646ddcf93d88a7 100644 (file)
@@ -50,19 +50,19 @@ namespace dcp {
 class ReelPictureAsset : public ReelAsset, public ReelMXF
 {
 public:
-       ReelPictureAsset (boost::shared_ptr<PictureAsset> asset, int64_t entry_point);
-       explicit ReelPictureAsset (boost::shared_ptr<const cxml::Node>);
+       ReelPictureAsset (std::shared_ptr<PictureAsset> asset, int64_t entry_point);
+       explicit ReelPictureAsset (std::shared_ptr<const cxml::Node>);
 
        virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelPictureAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelPictureAsset>, EqualityOptions, NoteHandler) const;
 
        /** @return the PictureAsset that this object refers to */
-       boost::shared_ptr<const PictureAsset> asset () const {
+       std::shared_ptr<const PictureAsset> asset () const {
                return asset_of_type<const PictureAsset> ();
        }
 
        /** @return the PictureAsset that this object refers to */
-       boost::shared_ptr<PictureAsset> asset () {
+       std::shared_ptr<PictureAsset> asset () {
                return asset_of_type<PictureAsset> ();
        }
 
index 40466ff31d69a56af93f7e46a20a5c26184a8524..520959990bbe49965a2a8e16fd94ef7e3ff886d1 100644 (file)
@@ -41,7 +41,7 @@
 #include <libxml++/libxml++.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 ReelSoundAsset::ReelSoundAsset (shared_ptr<SoundAsset> asset, int64_t entry_point)
index 57d14bc6ed54a652915e52274e8a39ba76e96c19..cbc667e5423ac883b78303c52c37c55bab3aec55 100644 (file)
@@ -38,7 +38,7 @@
 #include "reel_mxf.h"
 #include "reel_asset.h"
 #include "sound_asset.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <string>
 
 namespace dcp {
@@ -49,19 +49,19 @@ namespace dcp {
 class ReelSoundAsset : public ReelAsset, public ReelMXF
 {
 public:
-       ReelSoundAsset (boost::shared_ptr<dcp::SoundAsset> content, int64_t entry_point);
-       explicit ReelSoundAsset (boost::shared_ptr<const cxml::Node>);
+       ReelSoundAsset (std::shared_ptr<dcp::SoundAsset> content, int64_t entry_point);
+       explicit ReelSoundAsset (std::shared_ptr<const cxml::Node>);
 
        xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelSoundAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelSoundAsset>, EqualityOptions, NoteHandler) const;
 
        /** @return the SoundAsset that this object refers to */
-       boost::shared_ptr<SoundAsset> asset () {
+       std::shared_ptr<SoundAsset> asset () {
                return asset_of_type<SoundAsset> ();
        }
 
        /** @return the SoundAsset that this object refers to */
-       boost::shared_ptr<const SoundAsset> asset () const {
+       std::shared_ptr<const SoundAsset> asset () const {
                return asset_of_type<const SoundAsset> ();
        }
 
index 8a169df2195084f2c9eceb2b9b550a1316c0d56e..06c57c66751d49a56075f5b5b58920186e01a0a4 100644 (file)
 using std::string;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
-ReelStereoPictureAsset::ReelStereoPictureAsset (boost::shared_ptr<StereoPictureAsset> mxf, int64_t entry_point)
+ReelStereoPictureAsset::ReelStereoPictureAsset (std::shared_ptr<StereoPictureAsset> mxf, int64_t entry_point)
        : ReelPictureAsset (mxf, entry_point)
 {
 
 }
 
-ReelStereoPictureAsset::ReelStereoPictureAsset (boost::shared_ptr<const cxml::Node> node)
+ReelStereoPictureAsset::ReelStereoPictureAsset (std::shared_ptr<const cxml::Node> node)
        : ReelPictureAsset (node)
 {
        node->done ();
index 80353b77f6a7417496a023f6883274763b8dc83c..b343626fbcadff895efde8b256233a511becc5ae 100644 (file)
@@ -51,16 +51,16 @@ class StereoPictureAsset;
 class ReelStereoPictureAsset : public ReelPictureAsset
 {
 public:
-       ReelStereoPictureAsset (boost::shared_ptr<StereoPictureAsset> content, int64_t entry_point);
-       explicit ReelStereoPictureAsset (boost::shared_ptr<const cxml::Node>);
+       ReelStereoPictureAsset (std::shared_ptr<StereoPictureAsset> content, int64_t entry_point);
+       explicit ReelStereoPictureAsset (std::shared_ptr<const cxml::Node>);
 
        /** @return the StereoPictureAsset that this object refers to */
-       boost::shared_ptr<const StereoPictureAsset> stereo_asset () const {
+       std::shared_ptr<const StereoPictureAsset> stereo_asset () const {
                return asset_of_type<const StereoPictureAsset> ();
        }
 
        /** @return the StereoPictureAsset that this object refers to */
-       boost::shared_ptr<StereoPictureAsset> stereo_asset () {
+       std::shared_ptr<StereoPictureAsset> stereo_asset () {
                return asset_of_type<StereoPictureAsset> ();
        }
 
index 00c694a1a57e8882e99a6b9e89125b35a477d7cb..029c8cb066ccfdf24d41de9e3d85258d0735d9a2 100644 (file)
 #include <libxml++/libxml++.h>
 
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcp;
 
-ReelSubtitleAsset::ReelSubtitleAsset (boost::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
+ReelSubtitleAsset::ReelSubtitleAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
        : ReelAsset (asset->id(), edit_rate, intrinsic_duration, entry_point)
        , ReelMXF (asset, dynamic_pointer_cast<SMPTESubtitleAsset>(asset) ? dynamic_pointer_cast<SMPTESubtitleAsset>(asset)->key_id() : optional<string>())
 {
 
 }
 
-ReelSubtitleAsset::ReelSubtitleAsset (boost::shared_ptr<const cxml::Node> node)
+ReelSubtitleAsset::ReelSubtitleAsset (std::shared_ptr<const cxml::Node> node)
        : ReelAsset (node)
        , ReelMXF (node)
 {
index a0cc405cca7b92cdebfe75deafa672befc541deb..13e72133faffaad02cf5ece856d9479fdd24a29f 100644 (file)
@@ -53,13 +53,13 @@ class SubtitleAsset;
 class ReelSubtitleAsset : public ReelAsset, public ReelMXF
 {
 public:
-       ReelSubtitleAsset (boost::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point);
-       explicit ReelSubtitleAsset (boost::shared_ptr<const cxml::Node>);
+       ReelSubtitleAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point);
+       explicit ReelSubtitleAsset (std::shared_ptr<const cxml::Node>);
 
        xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
-       bool equals (boost::shared_ptr<const ReelSubtitleAsset>, EqualityOptions, NoteHandler) const;
+       bool equals (std::shared_ptr<const ReelSubtitleAsset>, EqualityOptions, NoteHandler) const;
 
-       boost::shared_ptr<SubtitleAsset> asset () const {
+       std::shared_ptr<SubtitleAsset> asset () const {
                return asset_of_type<SubtitleAsset> ();
        }
 
index 73aaae6efd8bf2e92f9e315bceb21fe8682cd9d5..7512d32c45891341adebceb8ef7c04a79b437317 100644 (file)
@@ -34,7 +34,7 @@
 #include "ref.h"
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 /** Look through a list of assets and copy a shared_ptr to any asset
index fd15c29e24556d720e95b963cc5738762aec7684..9ebe19b8d3d168ba34ff249aa697056266f1567e 100644 (file)
--- a/src/ref.h
+++ b/src/ref.h
@@ -41,7 +41,7 @@
 #include "exceptions.h"
 #include "asset.h"
 #include "util.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <string>
 
 namespace dcp {
@@ -66,7 +66,7 @@ public:
        {}
 
        /** Initialise a Ref with a shared_ptr to an asset */
-       explicit Ref (boost::shared_ptr<Asset> asset)
+       explicit Ref (std::shared_ptr<Asset> asset)
                : _id (asset->id ())
                , _asset (asset)
        {}
@@ -77,7 +77,7 @@ public:
                _id = id;
        }
 
-       void resolve (std::list<boost::shared_ptr<Asset> > assets);
+       void resolve (std::list<std::shared_ptr<Asset> > assets);
 
        /** @return the ID of the thing that we are pointing to */
        std::string id () const {
@@ -87,7 +87,7 @@ public:
        /** @return a shared_ptr to the thing; an UnresolvedRefError is thrown
         *  if the shared_ptr is not known.
         */
-       boost::shared_ptr<Asset> asset () const {
+       std::shared_ptr<Asset> asset () const {
                if (!_asset) {
                        throw UnresolvedRefError (_id);
                }
@@ -113,7 +113,7 @@ public:
 
 private:
        std::string _id;             ///< ID; will always be known
-       boost::shared_ptr<Asset> _asset; ///< shared_ptr to the thing, may be null.
+       std::shared_ptr<Asset> _asset; ///< shared_ptr to the thing, may be null.
 };
 
 }
index d0774e7c1bcd142b002a9850a8058643b1190728..d7c9ae6f3bf90feee3565643a1306980500286ed 100644 (file)
@@ -42,7 +42,7 @@
 using std::min;
 using std::max;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
@@ -65,7 +65,7 @@ using namespace dcp;
  */
 void
 dcp::xyz_to_rgba (
-       boost::shared_ptr<const OpenJPEGImage> xyz_image,
+       std::shared_ptr<const OpenJPEGImage> xyz_image,
        ColourConversion const & conversion,
        uint8_t* argb,
        int stride
index 652f5522656dbbaf63f5830ce25efe06ed722ae6..60df612cf29637af26d26432bd6dc9bafadb8c89 100644 (file)
@@ -32,7 +32,7 @@
 */
 
 #include "types.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/optional.hpp>
 #include <stdint.h>
 
@@ -43,21 +43,21 @@ class Image;
 class ColourConversion;
 
 extern void xyz_to_rgba (
-       boost::shared_ptr<const OpenJPEGImage>,
+       std::shared_ptr<const OpenJPEGImage>,
        ColourConversion const & conversion,
        uint8_t* rgba,
        int stride
        );
 
 extern void xyz_to_rgb (
-       boost::shared_ptr<const OpenJPEGImage>,
+       std::shared_ptr<const OpenJPEGImage>,
        ColourConversion const & conversion,
        uint8_t* rgb,
        int stride,
        boost::optional<NoteHandler> note = boost::optional<NoteHandler> ()
        );
 
-extern boost::shared_ptr<OpenJPEGImage> rgb_to_xyz (
+extern std::shared_ptr<OpenJPEGImage> rgb_to_xyz (
        uint8_t const * rgb,
        dcp::Size size,
        int stride,
index 371aebacdfd9ba4a3da85fdb35c2bdb238e3b5c9..599028b4cd70e782085b2d5edf582d3f86199607 100644 (file)
@@ -39,8 +39,8 @@
 #include <cmath>
 
 using std::pow;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 double *
index 231b4cc6f13d763ccae62e580ccf583217d419d0..3f83da87a3f8b2e66e698bf57b5732937239b7b8 100644 (file)
@@ -42,7 +42,7 @@ namespace dcp {
 class SGamut3TransferFunction : public TransferFunction
 {
 public:
-       bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const;
+       bool about_equal (std::shared_ptr<const TransferFunction> other, double epsilon) const;
 
 protected:
        double * make_lut (int bit_depth, bool inverse) const;
index 6d74604869707bf62d0be7dce3e928a9397779bc..4d206784ef672590b43aa5d01ec475fc4385c239 100644 (file)
@@ -36,7 +36,7 @@
 #include <libcxml/cxml.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 SMPTELoadFontNode::SMPTELoadFontNode (string id, string urn_)
index e472408caba1ff590e87a8eb58fe179d59ce2718..c310246d5d3983917a42c0b4b8bb3988a9d4519a 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #include "load_font_node.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/optional.hpp>
 
 namespace cxml {
@@ -53,7 +53,7 @@ class SMPTELoadFontNode : public LoadFontNode
 public:
        SMPTELoadFontNode () {}
        SMPTELoadFontNode (std::string id, std::string urn);
-       explicit SMPTELoadFontNode (boost::shared_ptr<const cxml::Node> node);
+       explicit SMPTELoadFontNode (std::shared_ptr<const cxml::Node> node);
 
        std::string urn;
 };
index 606ef84ca9e16d840a7bea55f05b21d7bdff4fcd..1ce64e5c72141631e52ddc0cc9a7ddf3143078d3 100644 (file)
@@ -56,11 +56,11 @@ using std::string;
 using std::list;
 using std::vector;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::split;
 using boost::is_any_of;
 using boost::shared_array;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::starts_with;
 using namespace dcp;
index 1f2215a89e854180d50e8f09c18e2c0dcc82044d..b66b1ea6c144f211183410123d94e2504e4df58f 100644 (file)
@@ -65,16 +65,16 @@ public:
        explicit SMPTESubtitleAsset (boost::filesystem::path file);
 
        bool equals (
-               boost::shared_ptr<const Asset>,
+               std::shared_ptr<const Asset>,
                EqualityOptions,
                NoteHandler note
                ) const;
 
-       std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
+       std::list<std::shared_ptr<LoadFontNode> > load_font_nodes () const;
 
        std::string xml_as_string () const;
        void write (boost::filesystem::path path) const;
-       void add (boost::shared_ptr<Subtitle>);
+       void add (std::shared_ptr<Subtitle>);
        void add_font (std::string id, dcp::ArrayData data);
        void set_key (Key key);
 
@@ -173,9 +173,9 @@ private:
        friend struct ::write_smpte_subtitle_test;
        friend struct ::write_smpte_subtitle_test2;
 
-       void read_fonts (boost::shared_ptr<ASDCP::TimedText::MXFReader>);
-       void parse_xml (boost::shared_ptr<cxml::Document> xml);
-       void read_mxf_descriptor (boost::shared_ptr<ASDCP::TimedText::MXFReader> reader, boost::shared_ptr<DecryptionContext> dec);
+       void read_fonts (std::shared_ptr<ASDCP::TimedText::MXFReader>);
+       void parse_xml (std::shared_ptr<cxml::Document> xml);
+       void read_mxf_descriptor (std::shared_ptr<ASDCP::TimedText::MXFReader> reader, std::shared_ptr<DecryptionContext> dec);
 
        /** The total length of this content in video frames.  The amount of
         *  content presented may be less than this.
@@ -194,7 +194,7 @@ private:
        int _time_code_rate;
        boost::optional<Time> _start_time;
 
-       std::list<boost::shared_ptr<SMPTELoadFontNode> > _load_font_nodes;
+       std::list<std::shared_ptr<SMPTELoadFontNode> > _load_font_nodes;
        /** UUID for the XML inside the MXF, which should be different to the ID of the MXF according to
         *  Doremi's 2.8.18 release notes.
         */
index 056471be1159cb515cd870922b64ff81e5e906bf..618574b69b91069fe886fd7cb61e2f225972d6b9 100644 (file)
@@ -53,8 +53,8 @@
 using std::string;
 using std::vector;
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 
index 80f1cfb6f50dbb09568db3fe7b4a3c273b9fd90e..8e55aef7f88d84479dbf623cd76ec229ffcc4f66 100644 (file)
@@ -59,11 +59,11 @@ public:
        explicit SoundAsset (boost::filesystem::path file);
        SoundAsset (Fraction edit_rate, int sampling_rate, int channels, LanguageTag language, Standard standard);
 
-       boost::shared_ptr<SoundAssetWriter> start_write (boost::filesystem::path file, std::vector<Channel> active_channels, bool atmos_sync = false);
-       boost::shared_ptr<SoundAssetReader> start_read () const;
+       std::shared_ptr<SoundAssetWriter> start_write (boost::filesystem::path file, std::vector<Channel> active_channels, bool atmos_sync = false);
+       std::shared_ptr<SoundAssetReader> start_read () const;
 
        bool equals (
-               boost::shared_ptr<const Asset> other,
+               std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
                ) const;
index d3b260e6a55c2eea5ef40595a462d365a3e54f5d..f1cdf41910eba72b67d4938f6e343c77c538d2d3 100644 (file)
@@ -39,7 +39,7 @@
 #include "fsk.h"
 #include "types.h"
 #include "sound_frame.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 #include <boost/shared_array.hpp>
 
@@ -81,7 +81,7 @@ private:
        */
 
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        SoundAsset* _asset;
        int _frame_buffer_offset;
index 53d00b389fe0c2f41a6708675bb30a77d6fc92ba..821a88660155c8e8d162068582d61bedee4ced25 100644 (file)
@@ -38,7 +38,7 @@
 using std::cout;
 using namespace dcp;
 
-SoundFrame::SoundFrame (ASDCP::PCM::MXFReader* reader, int n, boost::shared_ptr<const DecryptionContext> c)
+SoundFrame::SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr<const DecryptionContext> c)
        : Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer> (reader, n, c)
 {
        ASDCP::PCM::AudioDescriptor desc;
index 5494d2da8a1dc6be3c11219436c406f1d514dad2..096bc1b31d29a6ab1081dcfd03138f5988aefbef 100644 (file)
@@ -46,7 +46,7 @@ namespace dcp {
 class SoundFrame : public Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer>
 {
 public:
-       SoundFrame (ASDCP::PCM::MXFReader* reader, int n, boost::shared_ptr<const DecryptionContext> c);
+       SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr<const DecryptionContext> c);
        int channels () const;
        int samples () const;
        int32_t get (int channel, int sample) const;
index a88053041efe0ecc54704b1ead085c24b8f2152c..0dfba553b1ac74c25867f1881c475ddc78d27dbd 100644 (file)
@@ -42,8 +42,8 @@
 using std::string;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcp;
 
 StereoPictureAsset::StereoPictureAsset (boost::filesystem::path file)
index 704ea1d4598527b2f03b0dc9e23f6407feebc2e9..e0302758129385b11b92a70111bf3e9669a36617 100644 (file)
@@ -47,11 +47,11 @@ public:
        explicit StereoPictureAsset (Fraction edit_rate, Standard standard);
 
        /** Start a progressive write to a StereoPictureAsset */
-       boost::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool);
-       boost::shared_ptr<StereoPictureAssetReader> start_read () const;
+       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool);
+       std::shared_ptr<StereoPictureAssetReader> start_read () const;
 
        bool equals (
-               boost::shared_ptr<const Asset> other,
+               std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
                ) const;
index 14900e6dac16efb3d745e818d0aee7a0f66070b2..124d01857ed0e266961a8a44ae7af67b4ed49894 100644 (file)
@@ -42,7 +42,7 @@
 #include "picture_asset_writer_common.cc"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 struct StereoPictureAssetWriter::ASDCPState : public ASDCPStateBase
index 82b78757c42d3134975e32f1f9a8408a13a552a2..d4dfa0f6fb6b270b60c7c1f743a17beff73db0ac 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "picture_asset_writer.h"
 #include "types.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/utility.hpp>
 #include <stdint.h>
 #include <string>
@@ -73,7 +73,7 @@ private:
        */
 
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        dcp::Eye _next_eye;
 };
index 4bbeae241cbc1846aa0995b9e8c60ee34abdae93..36c26602639bcf5e1ccc5ecf852a0bb41279670e 100644 (file)
@@ -43,7 +43,7 @@
 #include <asdcp/KM_fileio.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 
index c38124c09239138226fcf86af4481300ee8750ce..13c02232ebaf52fcc4434954e61da9667f84ac2f 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "types.h"
 #include "asset_reader.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/noncopyable.hpp>
 #include <boost/filesystem.hpp>
 #include <stdint.h>
@@ -63,7 +63,7 @@ class StereoPictureFrame : public boost::noncopyable
 public:
        StereoPictureFrame ();
 
-       boost::shared_ptr<OpenJPEGImage> xyz_image (Eye eye, int reduce = 0) const;
+       std::shared_ptr<OpenJPEGImage> xyz_image (Eye eye, int reduce = 0) const;
 
        class Part : public Data
        {
@@ -75,15 +75,15 @@ public:
        private:
                friend class StereoPictureFrame;
 
-               Part (boost::shared_ptr<ASDCP::JP2K::SFrameBuffer> buffer, Eye eye);
+               Part (std::shared_ptr<ASDCP::JP2K::SFrameBuffer> buffer, Eye eye);
                ASDCP::JP2K::FrameBuffer& mono () const;
 
-               boost::shared_ptr<ASDCP::JP2K::SFrameBuffer> _buffer;
+               std::shared_ptr<ASDCP::JP2K::SFrameBuffer> _buffer;
                Eye _eye;
        };
 
-       boost::shared_ptr<Part> left () const;
-       boost::shared_ptr<Part> right () const;
+       std::shared_ptr<Part> left () const;
+       std::shared_ptr<Part> right () const;
 
 private:
        /* XXX: this is a bit of a shame, but I tried friend StereoPictureAssetReader and it's
@@ -91,9 +91,9 @@ private:
        */
        friend class AssetReader<ASDCP::JP2K::MXFSReader, StereoPictureFrame>;
 
-       StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, boost::shared_ptr<DecryptionContext>);
+       StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, std::shared_ptr<DecryptionContext>);
 
-       boost::shared_ptr<ASDCP::JP2K::SFrameBuffer> _buffer;
+       std::shared_ptr<ASDCP::JP2K::SFrameBuffer> _buffer;
 };
 
 }
index 96e5cba5e5797de45812693ad37b133c7d7ae611..570877ab6d9c9a8cbf86686b3f959d2cd3189f07 100644 (file)
@@ -54,10 +54,10 @@ using std::list;
 using std::cout;
 using std::cerr;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::shared_array;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::lexical_cast;
 using namespace dcp;
 
index ab909a26cb20a940f40763921b4984506857ef18..dff31cc69d91b78ee37d0077e89699c26cc667d8 100644 (file)
@@ -83,17 +83,17 @@ public:
        explicit SubtitleAsset (boost::filesystem::path file);
 
        bool equals (
-               boost::shared_ptr<const Asset>,
+               std::shared_ptr<const Asset>,
                EqualityOptions,
                NoteHandler note
                ) const;
 
-       std::list<boost::shared_ptr<Subtitle> > subtitles_during (Time from, Time to, bool starting) const;
-       std::list<boost::shared_ptr<Subtitle> > const & subtitles () const {
+       std::list<std::shared_ptr<Subtitle> > subtitles_during (Time from, Time to, bool starting) const;
+       std::list<std::shared_ptr<Subtitle> > const & subtitles () const {
                return _subtitles;
        }
 
-       virtual void add (boost::shared_ptr<Subtitle>);
+       virtual void add (std::shared_ptr<Subtitle>);
        virtual void add_font (std::string id, dcp::ArrayData data) = 0;
        std::map<std::string, ArrayData> font_data () const;
        std::map<std::string, boost::filesystem::path> font_filenames () const;
@@ -105,7 +105,7 @@ public:
 
        void fix_empty_font_ids ();
 
-       virtual std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const = 0;
+       virtual std::list<std::shared_ptr<LoadFontNode> > load_font_nodes () const = 0;
 
        std::string raw_xml () const {
                return _raw_xml;
@@ -152,7 +152,7 @@ protected:
        void subtitles_as_xml (xmlpp::Element* root, int time_code_rate, Standard standard) const;
 
        /** All our subtitles, in no particular order */
-       std::list<boost::shared_ptr<Subtitle> > _subtitles;
+       std::list<std::shared_ptr<Subtitle> > _subtitles;
 
        class Font
        {
@@ -190,7 +190,7 @@ private:
 
        void maybe_add_subtitle (std::string text, std::list<ParseState> const & parse_state, Standard standard);
 
-       static void pull_fonts (boost::shared_ptr<order::Part> part);
+       static void pull_fonts (std::shared_ptr<order::Part> part);
 };
 
 }
index 7b9e18e90e7aa11b11f296a2e0ef8e11ebc23c59..ae5893de7381e8df7cb127ea744878917d7c905a 100644 (file)
@@ -38,7 +38,7 @@
 
 using std::string;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 string
@@ -141,7 +141,7 @@ order::Part::write_xml (xmlpp::Element* parent, order::Context& context) const
 
        parent = as_xml (parent, context);
 
-       BOOST_FOREACH (boost::shared_ptr<order::Part> i, children) {
+       BOOST_FOREACH (std::shared_ptr<order::Part> i, children) {
                i->write_xml (parent, context);
        }
 }
index e5c8e141ad165ad1bd02fd4e176fa143b2840d5e..6168ba18e4d60d6d6c84c9d2ed797a801bc35739 100644 (file)
@@ -68,7 +68,7 @@ class Font
 public:
        Font () {}
 
-       Font (boost::shared_ptr<SubtitleString> s, Standard standard);
+       Font (std::shared_ptr<SubtitleString> s, Standard standard);
 
        xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const;
 
@@ -91,11 +91,11 @@ private:
 class Part
 {
 public:
-       Part (boost::shared_ptr<Part> parent_)
+       Part (std::shared_ptr<Part> parent_)
                : parent (parent_)
        {}
 
-       Part (boost::shared_ptr<Part> parent_, Font font_)
+       Part (std::shared_ptr<Part> parent_, Font font_)
                : parent (parent_)
                , font (font_)
        {}
@@ -105,15 +105,15 @@ public:
        virtual xmlpp::Element* as_xml (xmlpp::Element* parent, Context &) const;
        void write_xml (xmlpp::Element* parent, order::Context& context) const;
 
-       boost::shared_ptr<Part> parent;
+       std::shared_ptr<Part> parent;
        Font font;
-       std::list<boost::shared_ptr<Part> > children;
+       std::list<std::shared_ptr<Part> > children;
 };
 
 class String : public Part
 {
 public:
-       String (boost::shared_ptr<Part> parent, Font font, std::string text_)
+       String (std::shared_ptr<Part> parent, Font font, std::string text_)
                : Part (parent, font)
                , text (text_)
        {}
@@ -126,7 +126,7 @@ public:
 class Text : public Part
 {
 public:
-       Text (boost::shared_ptr<Part> parent, HAlign h_align, float h_position, VAlign v_align, float v_position, Direction direction)
+       Text (std::shared_ptr<Part> parent, HAlign h_align, float h_position, VAlign v_align, float v_position, Direction direction)
                : Part (parent)
                , _h_align (h_align)
                , _h_position (h_position)
@@ -148,7 +148,7 @@ private:
 class Subtitle : public Part
 {
 public:
-       Subtitle (boost::shared_ptr<Part> parent, Time in, Time out, Time fade_up, Time fade_down)
+       Subtitle (std::shared_ptr<Part> parent, Time in, Time out, Time fade_up, Time fade_down)
                : Part (parent)
                , _in (in)
                , _out (out)
@@ -168,7 +168,7 @@ private:
 class Image : public Part
 {
 public:
-       Image (boost::shared_ptr<Part> parent, std::string id, ArrayData png_data, HAlign h_align, float h_position, VAlign v_align, float v_position)
+       Image (std::shared_ptr<Part> parent, std::string id, ArrayData png_data, HAlign h_align, float h_position, VAlign v_align, float v_position)
                : Part (parent)
                , _png_data (png_data)
                , _id (id)
index e280e3921274351737725c4e25657819ca2a7fc7..99d63d27b8bf4c32f9b163f3364318941d55f19a 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::ostream;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 SubtitleImage::SubtitleImage (
index e397fb2b1e4127f4827e37702d2ac84fc86bce7a..2cdfea25ea5715cb971190d26ecd7578da491e73 100644 (file)
@@ -99,7 +99,7 @@ public:
                return _file;
        }
 
-       bool equals (boost::shared_ptr<dcp::SubtitleImage> other, EqualityOptions options, NoteHandler note);
+       bool equals (std::shared_ptr<dcp::SubtitleImage> other, EqualityOptions options, NoteHandler note);
 
 private:
        ArrayData _png_image;
index ea71818eb2a2bac10d98290bf78b625facd3b4e0..8746c8284e428180ec09cbd745162cd4942557c4 100644 (file)
@@ -38,7 +38,7 @@ using std::pow;
 using std::map;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 TransferFunction::~TransferFunction ()
index 8facf8a4d10ce595ebd86f29e91d037219ba6717..52624c6689b7c82c9b339deef4c94c57d2650d68 100644 (file)
@@ -39,7 +39,7 @@
 #define LIBDCP_TRANSFER_FUNCTION_H
 
 #include <boost/noncopyable.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/thread/mutex.hpp>
 #include <map>
 
@@ -56,7 +56,7 @@ public:
        /** @return A look-up table (of size 2^bit_depth) whose values range from 0 to 1 */
        double const * lut (int bit_depth, bool inverse) const;
 
-       virtual bool about_equal (boost::shared_ptr<const TransferFunction> other, double epsilon) const = 0;
+       virtual bool about_equal (std::shared_ptr<const TransferFunction> other, double epsilon) const = 0;
 
 protected:
        /** Make a LUT and return an array allocated by new */
index 1102f16b56bbaea6a30c078ed5619e117e2e4b5d..3bd5c2c39b755e3a5ef5c48377ccd2da9083ff8e 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <libcxml/cxml.h>
 #include <asdcp/KLV.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/function.hpp>
 #include <string>
 
index 56b448897e53a43ab5210e9f2fac258b4cfae477..133f6dc945ec2f69b59362cd975747bd83648ae1 100644 (file)
@@ -70,7 +70,7 @@ using std::list;
 using std::setw;
 using std::setfill;
 using std::ostream;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::shared_array;
 using boost::optional;
 using boost::function;
index 523794e40ca955c98a7563b11b8a7dfaf8eea7ac..9cca8136a558a1c3b142af780800caa48092ff92 100644 (file)
@@ -43,7 +43,7 @@
 #include "types.h"
 #include "local_time.h"
 #include <asdcp/KM_log.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/function.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/optional.hpp>
index 69109983a55385f2d687c66a3ce05f2d6241d364..e31fa682df73eaca67a7acaeedfc31688bce40ce 100644 (file)
@@ -78,10 +78,10 @@ using std::string;
 using std::cout;
 using std::map;
 using std::max;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 using namespace dcp;
 using namespace xercesc;
index 582965a21113942052e19b11b994272295a8178b..25abd43689ed4d1d7a4db48ba75a37c7dee002a4 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -41,61 +41,61 @@ namespace dcp
 {
 
 template <class T>
-boost::shared_ptr<T>
+std::shared_ptr<T>
 optional_type_child (cxml::Node const & node, std::string name)
 {
-       std::list<boost::shared_ptr<cxml::Node> > n = node.node_children (name);
+       std::list<std::shared_ptr<cxml::Node> > n = node.node_children (name);
        if (n.size() > 1) {
                throw XMLError ("duplicate XML tag");
        } else if (n.empty ()) {
-               return boost::shared_ptr<T> ();
+               return std::shared_ptr<T> ();
        }
 
-       return boost::shared_ptr<T> (new T (n.front ()));
+       return std::shared_ptr<T> (new T (n.front ()));
 }
 
 template <class T>
-boost::shared_ptr<T> type_child (boost::shared_ptr<const cxml::Node> node, std::string name) {
-       return boost::shared_ptr<T> (new T (node->node_child (name)));
+std::shared_ptr<T> type_child (std::shared_ptr<const cxml::Node> node, std::string name) {
+       return std::shared_ptr<T> (new T (node->node_child (name)));
 }
 
 template <class T>
-boost::shared_ptr<T>
-optional_type_child (boost::shared_ptr<const cxml::Node> node, std::string name)
+std::shared_ptr<T>
+optional_type_child (std::shared_ptr<const cxml::Node> node, std::string name)
 {
        return optional_type_child<T> (*node.get(), name);
 }
 
 template <class T>
-std::list<boost::shared_ptr<T> >
+std::list<std::shared_ptr<T> >
 type_children (cxml::Node const & node, std::string name)
 {
-       std::list<boost::shared_ptr<cxml::Node> > n = node.node_children (name);
-        std::list<boost::shared_ptr<T> > r;
-        for (typename std::list<boost::shared_ptr<cxml::Node> >::iterator i = n.begin(); i != n.end(); ++i) {
-               r.push_back (boost::shared_ptr<T> (new T (*i)));
+       std::list<std::shared_ptr<cxml::Node> > n = node.node_children (name);
+        std::list<std::shared_ptr<T> > r;
+        for (typename std::list<std::shared_ptr<cxml::Node> >::iterator i = n.begin(); i != n.end(); ++i) {
+               r.push_back (std::shared_ptr<T> (new T (*i)));
        }
        return r;
 }
 
 template <class T>
-std::list<boost::shared_ptr<T> >
-type_children (boost::shared_ptr<const cxml::Node> node, std::string name)
+std::list<std::shared_ptr<T> >
+type_children (std::shared_ptr<const cxml::Node> node, std::string name)
 {
        return type_children<T> (*node.get(), name);
 }
 
 template <class T>
-std::list<boost::shared_ptr<T> >
+std::list<std::shared_ptr<T> >
 type_grand_children (cxml::Node const & node, std::string name, std::string sub)
 {
-       boost::shared_ptr<const cxml::Node> p = node.node_child (name);
+       std::shared_ptr<const cxml::Node> p = node.node_child (name);
        return type_children<T> (p, sub);
 }
 
 template <class T>
-std::list<boost::shared_ptr<T> >
-type_grand_children (boost::shared_ptr<const cxml::Node> node, std::string name, std::string sub)
+std::list<std::shared_ptr<T> >
+type_grand_children (std::shared_ptr<const cxml::Node> node, std::string name, std::string sub)
 {
        return type_grand_children<T> (*node.get(), name, sub);
 }
index 13f4773e898da84bc61c1c8c241a1ce9165d51ff..a6fa4b33c2ab82e4def497eff012cfd72cd85979 100644 (file)
@@ -37,7 +37,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 class DummyAsset : public dcp::Asset
 {
index 692b169eb2eece8e147fde4a415757b891e46cf2..1dc1193221f12c3342faa65281c442131c18caef 100644 (file)
@@ -41,7 +41,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Check that loading certificates from files via strings works */
 BOOST_AUTO_TEST_CASE (certificates1)
index 16661b038b2ce7cb2d1c559ac9b674ca410f4d11..5a6bdd85fc434ee9c094b0c4ea54572f560008a5 100644 (file)
@@ -38,7 +38,7 @@
 #include <cmath>
 
 using std::pow;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 static void
index c5d2f4a782353dc951f34664fe3b4fd6f853fd5e..6db968f62cb662b915edf9ce7f6655cd4a62b058 100644 (file)
@@ -53,7 +53,7 @@ using std::list;
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static void
index a97daaa928d360756d246cf98e3c43823143e676..6fef2c745f1aa07d392564f75e0b3b0947d6ad1b 100644 (file)
 #include "reel.h"
 #include "reel_subtitle_asset.h"
 #include "test.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/test/unit_test.hpp>
 
 
 using std::list;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (cpl_metadata_bad_values_test)
index ae8469983b42eac8c8332dcb9c4faaf7089578c2..931359b4ad8a5f57ae8163df0c8de4577deabce6 100644 (file)
@@ -48,7 +48,7 @@ BOOST_AUTO_TEST_CASE (cpl_ratings)
        ratings.push_back (dcp::Rating("http://www.movielabs.com/md/ratings/GB/BBFC/1/12A%3C/Agency", "12A"));
        cpl.set_ratings (ratings);
 
-       cpl.write_xml ("build/test/cpl_ratings.xml", dcp::SMPTE, boost::shared_ptr<dcp::CertificateChain>());
+       cpl.write_xml ("build/test/cpl_ratings.xml", dcp::SMPTE, std::shared_ptr<dcp::CertificateChain>());
 
        list<string> ignore;
        ignore.push_back ("Id");
index 1988fa22a599510be242d57c397b9ee11287c953..60945aaed0b1c7b87006c02076097682e9afe2a9 100644 (file)
@@ -39,7 +39,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 check (shared_ptr<dcp::ReelMonoPictureAsset> pa, dcp::Fraction far, string sar)
index 313ff9390b1376dd05597b629e82c47e5c0b0a11..1a78bfd28365e7b9d30956d766a3d311d8e5d022 100644 (file)
@@ -44,8 +44,8 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::shared_array;
 
 /** Create a DCP with interop subtitles and check that the font is written and read back correctly */
index 135887d5b60a8bdfe3c892cd061c204caa2b2b5f..347d433d7412be9f9a2531d7e23f9f010ccc8a39 100644 (file)
@@ -54,8 +54,8 @@
 
 using std::string;
 using std::vector;
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 65f1fe878df95b2ef0ecbad4202207d8b229ea2d..6a7dde9da9e170e6eb1c2051d0eca53cbcad1909 100644 (file)
@@ -49,8 +49,8 @@
 
 using std::pair;
 using std::make_pair;
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 using boost::scoped_array;
 
 pair<uint8_t*, dcp::Size>
index 2793e8adbbf2d791f28a882a960de2b78cde8dbe..9748ee3fc169d13b3dd1a944beb823374d994d65 100644 (file)
 #include <asdcp/KM_util.h>
 #include <sndfile.h>
 #include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 using std::vector;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Load a certificate chain from build/test/data/ *.pem and then build
  *  an encrypted DCP and a KDM using it.
index 2d08669e4464e96dfced1609ae03b9fb7a7080bc..e01181d1bb1a1529c26f4f2c1ac2e4f47ff55685 100644 (file)
@@ -38,7 +38,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 check (unsigned int* seed, shared_ptr<dcp::PictureAssetWriter> writer, string hash)
index 46af4dd7b758616a9ec13e7d73bb5956eadcb48b..993f4e9bec2ff6f5259b09700ca325ffb2acb0cd 100644 (file)
@@ -35,7 +35,7 @@
 #include "modified_gamma_transfer_function.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Check GammaTransferFunction::about_equal */
 BOOST_AUTO_TEST_CASE (gamma_transfer_function_test)
index bf5c14c52bc8b2fa8a04d1f717a0f516aa805681..21c922a23decd0a3a0d4e06720bcba5c67785b64 100644 (file)
@@ -51,7 +51,7 @@
 using std::list;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 /** Check reading and decryption of a KDM */
index f42f33c5e00c250d210a68651fc8ff304609e669..fe4fbb05484eeacda8444abe406980f5f5dce408 100644 (file)
 
 
 #include <boost/bind.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/test/unit_test.hpp>
 #include "cpl.h"
 #include "reel.h"
 #include "reel_markers_asset.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (markers_write_test)
 {
index 3df03bd15576a1a625ff04031ba8ee4c60d1c0e2..b573daf1771c20b267306123e9b4b05c181fcaff 100644 (file)
@@ -47,7 +47,7 @@
 using std::list;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 /** Check that when we read a MXF and write its MCA metadata to a CPL we get the same answer
index 66a4b43f78c353f5f88893aeecc17751a3a47d56..c885523ad2bebe2a4079a08bb863d7af3948dec1 100644 (file)
@@ -37,7 +37,7 @@
 #include "cpl.h"
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Read a SMPTE DCP that is in git and make sure that basic stuff is read in correctly */
 BOOST_AUTO_TEST_CASE (read_dcp_test1)
index 2860a725f6ef0739e6111bb776243c5207701877..c665bcc21d66690e8ce6d10d88ddea4a97eda840 100644 (file)
@@ -40,8 +40,8 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** Load some subtitle content from Interop XML and check that it is read correctly */
 BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
index 9cf1451dae633c1b414ae458ac4ac775447a7cb3..7c367bd43baf6f7ec6fd5442d762320b182aa310 100644 (file)
@@ -41,8 +41,8 @@
 #include <boost/optional/optional_io.hpp>
 
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** Check reading of a SMPTE subtitle file */
 BOOST_AUTO_TEST_CASE (read_smpte_subtitle_test)
index afeba6d72c96e88ddb5eb574ceb5dab6e2137634..76dff1956aafca5045fb066726428d73d5eaf96c 100644 (file)
@@ -39,7 +39,7 @@
 #include <boost/filesystem.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Check that recovery from a partially-written MXF works */
 BOOST_AUTO_TEST_CASE (recovery)
index 42d765251a12c03c198ffa040f8c5ecbae0d291b..bf609c2c059669e2ef96c6d9f17eb7449e9c0812 100644 (file)
@@ -40,7 +40,7 @@
 
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 /** Test the XML constructor of ReelPictureAsset */
index 724f424d2be459891a65c69f5ec6a712f109ff1b..a6c708e3bd87185249ac38262aee93769176a4b9 100644 (file)
@@ -43,7 +43,7 @@ using std::cout;
 using std::cerr;
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcp;
 
 /** Load a DCP then re-write its subtitle XML or MXF in-place */
@@ -62,7 +62,7 @@ main (int argc, char* argv[])
                dcp->read ();
 
                list<shared_ptr<CPL> > cpls = dcp->cpls ();
-               for (list<boost::shared_ptr<CPL> >::iterator i = cpls.begin(); i != cpls.end(); ++i) {
+               for (list<std::shared_ptr<CPL> >::iterator i = cpls.begin(); i != cpls.end(); ++i) {
 
                        list<shared_ptr<Reel> > reels = (*i)->reels ();
                        for (list<shared_ptr<Reel> >::iterator j = reels.begin(); j != reels.end(); ++j) {
index 5dcfe673fe546f3fceb04afa0cce57181b816d9f..af79b1e3c49c34ea8c136e50ff7d0d023d048a87 100644 (file)
@@ -42,7 +42,7 @@ using std::max;
 using std::list;
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::scoped_array;
 
index 10b7b6fe04a219859374c823fb514c54c910bd00..49da5b65fe3cb98c9540bb6316d4d092e4493bd8 100644 (file)
@@ -57,7 +57,7 @@
 using std::list;
 using std::vector;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_array;
 
 /** Build an encrypted picture asset and a KDM for it and check that the KDM can be decrypted */
index 35ad55505adf59f5d3898751fc45f628172482eb..6f72511e299c5cbcc379242d308adc30a3b158b4 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (smpte_subtitle_id_test)
 {
index a9088e2600660aee2423126fafaeceabac80391b..a8060bd47ec5ca74c8c07ea9bb506f55f9402972 100644 (file)
@@ -39,7 +39,7 @@
 #include "exceptions.h"
 #include <sndfile.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (sound_frame_test)
 {
index 0bffdb838fb5a8bd93e3dc55c095d7e7fda25cb3..cbfd74007fac19c58af25cae5f5f5c8721bef669 100644 (file)
 #include "sound_asset_writer.h"
 #include "test.h"
 #include <boost/filesystem.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/test/unit_test.hpp>
 #include <vector>
 
 
 using std::vector;
 using boost::shared_array;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static const int sample_A = 0.038 * 8388608;
index 69772e98e4124c1e00d680afe20bd6c5040e0f53..76a6c4c572034ea8e4e5881741efc5b85acfe286 100644 (file)
@@ -68,7 +68,7 @@ using std::string;
 using std::min;
 using std::list;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 
index ea697e4000260ec3f09909d70cff2a4ae052a9af..fdc3c4d7ba7530b60d2db58e1f73918febaba47a 100644 (file)
@@ -42,14 +42,14 @@ extern boost::filesystem::path xsd_test;
 extern void check_xml (xmlpp::Element* ref, xmlpp::Element* test, std::list<std::string> ignore_tags, bool ignore_whitespace = false);
 extern void check_xml (std::string ref, std::string test, std::list<std::string> ignore);
 extern void check_file (boost::filesystem::path ref, boost::filesystem::path check);
-extern boost::shared_ptr<dcp::MonoPictureAsset> simple_picture (boost::filesystem::path path, std::string suffix);
-extern boost::shared_ptr<dcp::DCP> make_simple (boost::filesystem::path path, int reels = 1);
-extern boost::shared_ptr<dcp::DCP> make_simple_with_interop_subs (boost::filesystem::path path);
-extern boost::shared_ptr<dcp::DCP> make_simple_with_smpte_subs (boost::filesystem::path path);
-extern boost::shared_ptr<dcp::DCP> make_simple_with_interop_ccaps (boost::filesystem::path path);
-extern boost::shared_ptr<dcp::DCP> make_simple_with_smpte_ccaps (boost::filesystem::path path);
-extern boost::shared_ptr<dcp::OpenJPEGImage> black_image ();
-extern boost::shared_ptr<dcp::ReelAsset> black_picture_asset (boost::filesystem::path dir, int frames = 24);
+extern std::shared_ptr<dcp::MonoPictureAsset> simple_picture (boost::filesystem::path path, std::string suffix);
+extern std::shared_ptr<dcp::DCP> make_simple (boost::filesystem::path path, int reels = 1);
+extern std::shared_ptr<dcp::DCP> make_simple_with_interop_subs (boost::filesystem::path path);
+extern std::shared_ptr<dcp::DCP> make_simple_with_smpte_subs (boost::filesystem::path path);
+extern std::shared_ptr<dcp::DCP> make_simple_with_interop_ccaps (boost::filesystem::path path);
+extern std::shared_ptr<dcp::DCP> make_simple_with_smpte_ccaps (boost::filesystem::path path);
+extern std::shared_ptr<dcp::OpenJPEGImage> black_image ();
+extern std::shared_ptr<dcp::ReelAsset> black_picture_asset (boost::filesystem::path dir, int frames = 24);
 
 /** Creating an object of this class will make asdcplib's random number generation
  *  (more) predictable.
index 9b9111d2cf2ee1501045c42ae64b67ae9e287897..fdf85100017ded152a1ee6b029efa9326dab0e61 100644 (file)
@@ -58,7 +58,7 @@ using std::string;
 using std::vector;
 using std::make_pair;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static list<pair<string, optional<boost::filesystem::path> > > stages;
index c3217dbcbbf050da3f3aa20edc73c286895689b8..deb18339746bab96fb78a3c0012e2bcc06260556 100644 (file)
@@ -47,7 +47,7 @@
 using std::list;
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Test dcp::order::Font::take_intersection */
 BOOST_AUTO_TEST_CASE (take_intersection_test)
index 0238a8cc09469182acc896e0a027f9fb6308183a..ca3fd2c5afd226cc93332a860da66e03a08ef832 100644 (file)
@@ -35,8 +35,8 @@
 #include "dcp.h"
 
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 void
 dcp::filter_notes (list<dcp::VerificationNote>& notes, bool ignore_missing_assets)
index a29986970a33b4410b1a7ac8568c903c0365c3ed..12cb492cc78b877f704961781770a9a105f8420c 100644 (file)
@@ -50,7 +50,7 @@ using std::string;
 using std::cerr;
 using std::cout;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 help (string n)
index 2bda4347ecf5816d700d7a42d9e14ede8d04ba02..5f9911d449bce0ca4de8d4991a92a473e009e9a4 100644 (file)
@@ -37,7 +37,7 @@
 #include "mxf.h"
 #include <getopt.h>
 #include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 #include <boost/foreach.hpp>
 #include <iostream>
@@ -47,9 +47,9 @@ using std::list;
 using std::cerr;
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index e8aed3d84ab42b66c3ac6406186aa8997cce7ecb..28b67a8dd9712f2bb581f1714c671c4b349609c3 100644 (file)
@@ -69,8 +69,8 @@ using std::max;
 using std::exception;
 using std::vector;
 using std::stringstream;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcp;
 
index 65240ae85227a918fbb0194e501d3e36305e61b2..9105f2a7f6d77e15e22f5bc541e6ab8144dcd2bb 100644 (file)
@@ -46,7 +46,7 @@ using std::cerr;
 using std::cout;
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 static void
diff --git a/wscript b/wscript
index c62e7e65a6a803d6dd5fd81e9d42e150bf1871d5..414787afe13d599d3d2fa09f421e778006ef33e5 100644 (file)
--- a/wscript
+++ b/wscript
@@ -62,14 +62,11 @@ def options(opt):
     opt.add_option('--enable-openmp', action='store_true', default=False, help='enable use of OpenMP')
     opt.add_option('--openmp', default='gomp', help='specify OpenMP Library to use: omp, gomp (default), iomp')
     opt.add_option('--jpeg', default='oj2', help='specify JPEG library to build with: oj1 or oj2 for OpenJPEG 1.5.x or OpenJPEG 2.1.x respectively')
-    opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11')
 
 def configure(conf):
     conf.load('compiler_cxx')
     conf.load('clang_compilation_database', tooldir=['waf-tools'])
-    conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS'])
-    if conf.options.force_cpp11:
-        conf.env.append_value('CXXFLAGS', ['-std=c++11', '-DBOOST_NO_CXX11_SCOPED_ENUMS'])
+    conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS', '-std=c++11', '-DBOOST_NO_CXX11_SCOPED_ENUMS'])
     gcc = conf.env['CC_VERSION']
     if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
         conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])