std::shared_ptr
authorCarl Hetherington <cth@carlh.net>
Mon, 4 Jan 2021 20:16:53 +0000 (21:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 7 Jan 2021 21:48:29 +0000 (22:48 +0100)
470 files changed:
src/lib/active_text.cc
src/lib/active_text.h
src/lib/analyse_audio_job.cc
src/lib/analyse_audio_job.h
src/lib/analyse_subtitles_job.cc
src/lib/analyse_subtitles_job.h
src/lib/atmos_content.cc
src/lib/atmos_content.h
src/lib/atmos_decoder.cc
src/lib/atmos_decoder.h
src/lib/atmos_metadata.cc
src/lib/atmos_metadata.h
src/lib/atmos_mxf_content.cc
src/lib/atmos_mxf_content.h
src/lib/atmos_mxf_decoder.cc
src/lib/atmos_mxf_decoder.h
src/lib/audio_analysis.cc
src/lib/audio_analysis.h
src/lib/audio_buffers.cc
src/lib/audio_buffers.h
src/lib/audio_content.cc
src/lib/audio_content.h
src/lib/audio_decoder.cc
src/lib/audio_decoder.h
src/lib/audio_delay.cc
src/lib/audio_delay.h
src/lib/audio_filter.cc
src/lib/audio_filter.h
src/lib/audio_filter_graph.cc
src/lib/audio_filter_graph.h
src/lib/audio_mapping.cc
src/lib/audio_merger.cc
src/lib/audio_merger.h
src/lib/audio_processor.h
src/lib/audio_ring_buffers.cc
src/lib/audio_ring_buffers.h
src/lib/audio_stream.h
src/lib/bitmap_text.h
src/lib/butler.cc
src/lib/butler.h
src/lib/check_content_change_job.cc
src/lib/check_content_change_job.h
src/lib/cinema.cc
src/lib/cinema.h
src/lib/colour_conversion.cc
src/lib/combine_dcp_job.cc
src/lib/config.cc
src/lib/config.h
src/lib/content.cc
src/lib/content.h
src/lib/content_atmos.h
src/lib/content_audio.h
src/lib/content_factory.cc
src/lib/content_factory.h
src/lib/content_part.h
src/lib/content_store.h
src/lib/content_text.h
src/lib/content_video.h
src/lib/copy_dcp_details_to_film.cc
src/lib/copy_dcp_details_to_film.h
src/lib/copy_to_drive_job.cc
src/lib/cross_linux.cc
src/lib/cross_osx.cc
src/lib/cross_windows.cc
src/lib/dcp.cc
src/lib/dcp.h
src/lib/dcp_content.cc
src/lib/dcp_content.h
src/lib/dcp_decoder.cc
src/lib/dcp_decoder.h
src/lib/dcp_encoder.cc
src/lib/dcp_encoder.h
src/lib/dcp_examiner.cc
src/lib/dcp_examiner.h
src/lib/dcp_subtitle.cc
src/lib/dcp_subtitle.h
src/lib/dcp_subtitle_content.cc
src/lib/dcp_subtitle_content.h
src/lib/dcp_subtitle_decoder.cc
src/lib/dcp_subtitle_decoder.h
src/lib/dcp_video.cc
src/lib/dcp_video.h
src/lib/dcpomatic_log.cc
src/lib/dcpomatic_log.h
src/lib/dcpomatic_socket.cc
src/lib/dcpomatic_socket.h
src/lib/decoder.cc
src/lib/decoder.h
src/lib/decoder_factory.cc
src/lib/decoder_factory.h
src/lib/decoder_part.cc
src/lib/decoder_part.h
src/lib/dkdm_recipient.cc
src/lib/dkdm_recipient.h
src/lib/dkdm_wrapper.cc
src/lib/dkdm_wrapper.h
src/lib/emailer.cc
src/lib/empty.cc
src/lib/empty.h
src/lib/encode_server.cc
src/lib/encode_server.h
src/lib/encode_server_finder.cc
src/lib/encode_server_finder.h
src/lib/encoder.cc
src/lib/encoder.h
src/lib/environment_info.cc
src/lib/examine_content_job.cc
src/lib/examine_content_job.h
src/lib/examine_ffmpeg_subtitles_job.cc
src/lib/examine_ffmpeg_subtitles_job.h
src/lib/ffmpeg.cc
src/lib/ffmpeg.h
src/lib/ffmpeg_content.cc
src/lib/ffmpeg_content.h
src/lib/ffmpeg_decoder.cc
src/lib/ffmpeg_decoder.h
src/lib/ffmpeg_encoder.cc
src/lib/ffmpeg_encoder.h
src/lib/ffmpeg_examiner.cc
src/lib/ffmpeg_examiner.h
src/lib/ffmpeg_file_encoder.cc
src/lib/ffmpeg_file_encoder.h
src/lib/ffmpeg_image_proxy.cc
src/lib/ffmpeg_image_proxy.h
src/lib/file_log.cc
src/lib/file_log.h
src/lib/film.cc
src/lib/film.h
src/lib/filter_graph.cc
src/lib/font_data.cc
src/lib/font_data.h
src/lib/frame_rate_change.cc
src/lib/frame_rate_change.h
src/lib/hints.cc
src/lib/hints.h
src/lib/image.cc
src/lib/image.h
src/lib/image_content.cc
src/lib/image_content.h
src/lib/image_decoder.cc
src/lib/image_decoder.h
src/lib/image_examiner.cc
src/lib/image_examiner.h
src/lib/image_proxy.cc
src/lib/image_proxy.h
src/lib/isdcf_metadata.cc
src/lib/j2k_encoder.cc
src/lib/j2k_encoder.h
src/lib/j2k_image_proxy.cc
src/lib/j2k_image_proxy.h
src/lib/job.cc
src/lib/job.h
src/lib/job_manager.cc
src/lib/job_manager.h
src/lib/json_server.cc
src/lib/json_server.h
src/lib/kdm_with_metadata.cc
src/lib/kdm_with_metadata.h
src/lib/log.cc
src/lib/log.h
src/lib/mid_side_decoder.cc
src/lib/mid_side_decoder.h
src/lib/null_log.h
src/lib/overlaps.cc
src/lib/overlaps.h
src/lib/piece.h
src/lib/player.cc
src/lib/player.h
src/lib/player_text.cc
src/lib/player_text.h
src/lib/player_video.cc
src/lib/player_video.h
src/lib/playlist.cc
src/lib/playlist.h
src/lib/position_image.h
src/lib/raw_image_proxy.cc
src/lib/raw_image_proxy.h
src/lib/reel_writer.cc
src/lib/reel_writer.h
src/lib/referenced_reel_asset.h
src/lib/render_text.cc
src/lib/render_text.h
src/lib/resampler.cc
src/lib/resampler.h
src/lib/scp_uploader.cc
src/lib/screen.cc
src/lib/screen.h
src/lib/send_kdm_email_job.cc
src/lib/send_notification_email_job.cc
src/lib/send_problem_report_job.cc
src/lib/send_problem_report_job.h
src/lib/server.cc
src/lib/server.h
src/lib/shuffler.cc
src/lib/shuffler.h
src/lib/spl.cc
src/lib/spl_entry.cc
src/lib/spl_entry.h
src/lib/stdout_log.cc
src/lib/stdout_log.h
src/lib/string_text_file.cc
src/lib/string_text_file.h
src/lib/string_text_file_content.cc
src/lib/string_text_file_content.h
src/lib/string_text_file_decoder.cc
src/lib/string_text_file_decoder.h
src/lib/subtitle_analysis.cc
src/lib/subtitle_encoder.cc
src/lib/subtitle_encoder.h
src/lib/text_content.cc
src/lib/text_content.h
src/lib/text_decoder.cc
src/lib/text_decoder.h
src/lib/transcode_job.cc
src/lib/transcode_job.h
src/lib/types.cc
src/lib/types.h
src/lib/upload_job.cc
src/lib/upload_job.h
src/lib/uploader.cc
src/lib/uploader.h
src/lib/upmixer_a.cc
src/lib/upmixer_a.h
src/lib/upmixer_b.cc
src/lib/upmixer_b.h
src/lib/util.cc
src/lib/util.h
src/lib/verify_dcp_job.cc
src/lib/verify_dcp_job.h
src/lib/video_content.cc
src/lib/video_content.h
src/lib/video_decoder.cc
src/lib/video_decoder.h
src/lib/video_filter_graph.cc
src/lib/video_filter_graph.h
src/lib/video_mxf_content.cc
src/lib/video_mxf_content.h
src/lib/video_mxf_decoder.cc
src/lib/video_mxf_decoder.h
src/lib/video_mxf_examiner.cc
src/lib/video_mxf_examiner.h
src/lib/video_ring_buffers.cc
src/lib/video_ring_buffers.h
src/lib/weak_film.h
src/lib/writer.cc
src/lib/writer.h
src/lib/zipper.cc
src/lib/zipper.h
src/tools/dcpomatic.cc
src/tools/dcpomatic_batch.cc
src/tools/dcpomatic_cli.cc
src/tools/dcpomatic_combiner.cc
src/tools/dcpomatic_create.cc
src/tools/dcpomatic_disk.cc
src/tools/dcpomatic_kdm.cc
src/tools/dcpomatic_kdm_cli.cc
src/tools/dcpomatic_player.cc
src/tools/dcpomatic_playlist.cc
src/tools/dcpomatic_server.cc
src/tools/dcpomatic_server_cli.cc
src/tools/server_test.cc
src/wx/audio_dialog.cc
src/wx/audio_dialog.h
src/wx/audio_mapping_view.cc
src/wx/audio_panel.cc
src/wx/audio_panel.h
src/wx/audio_plot.cc
src/wx/audio_plot.h
src/wx/batch_job_view.cc
src/wx/batch_job_view.h
src/wx/closed_captions_dialog.cc
src/wx/closed_captions_dialog.h
src/wx/colour_conversion_editor.cc
src/wx/config_dialog.cc
src/wx/config_dialog.h
src/wx/content_advanced_dialog.cc
src/wx/content_advanced_dialog.h
src/wx/content_menu.cc
src/wx/content_menu.h
src/wx/content_panel.cc
src/wx/content_panel.h
src/wx/content_properties_dialog.cc
src/wx/content_properties_dialog.h
src/wx/content_sub_panel.cc
src/wx/content_sub_panel.h
src/wx/content_view.cc
src/wx/content_view.h
src/wx/content_widget.h
src/wx/controls.cc
src/wx/controls.h
src/wx/dcp_panel.cc
src/wx/dcp_panel.h
src/wx/dkdm_dialog.cc
src/wx/dkdm_dialog.h
src/wx/dkdm_output_panel.cc
src/wx/dkdm_output_panel.h
src/wx/email_dialog.cc
src/wx/film_editor.cc
src/wx/film_editor.h
src/wx/film_viewer.cc
src/wx/film_viewer.h
src/wx/fonts_dialog.cc
src/wx/fonts_dialog.h
src/wx/full_config_dialog.cc
src/wx/gl_video_view.cc
src/wx/gl_video_view.h
src/wx/hints_dialog.cc
src/wx/hints_dialog.h
src/wx/interop_metadata_dialog.cc
src/wx/interop_metadata_dialog.h
src/wx/isdcf_metadata_dialog.cc
src/wx/isdcf_metadata_dialog.h
src/wx/job_manager_view.cc
src/wx/job_manager_view.h
src/wx/job_view.cc
src/wx/job_view.h
src/wx/job_view_dialog.cc
src/wx/job_view_dialog.h
src/wx/kdm_dialog.cc
src/wx/kdm_dialog.h
src/wx/kdm_output_panel.cc
src/wx/kdm_output_panel.h
src/wx/language_tag_dialog.cc
src/wx/markers_dialog.cc
src/wx/markers_dialog.h
src/wx/monitor_dialog.cc
src/wx/move_to_dialog.cc
src/wx/move_to_dialog.h
src/wx/nag_dialog.cc
src/wx/normal_job_view.cc
src/wx/normal_job_view.h
src/wx/player_config_dialog.cc
src/wx/player_information.cc
src/wx/player_information.h
src/wx/playlist_controls.cc
src/wx/playlist_controls.h
src/wx/recipient_dialog.h
src/wx/recipients_panel.cc
src/wx/recipients_panel.h
src/wx/report_problem_dialog.cc
src/wx/report_problem_dialog.h
src/wx/screen_dialog.h
src/wx/screens_panel.cc
src/wx/screens_panel.h
src/wx/self_dkdm_dialog.cc
src/wx/self_dkdm_dialog.h
src/wx/server_dialog.cc
src/wx/simple_video_view.cc
src/wx/simple_video_view.h
src/wx/smpte_metadata_dialog.cc
src/wx/smpte_metadata_dialog.h
src/wx/standard_controls.cc
src/wx/standard_controls.h
src/wx/subtitle_appearance_dialog.cc
src/wx/subtitle_appearance_dialog.h
src/wx/system_information_dialog.cc
src/wx/system_information_dialog.h
src/wx/text_panel.cc
src/wx/text_panel.h
src/wx/text_view.cc
src/wx/text_view.h
src/wx/timeline.cc
src/wx/timeline.h
src/wx/timeline_atmos_content_view.cc
src/wx/timeline_atmos_content_view.h
src/wx/timeline_audio_content_view.cc
src/wx/timeline_audio_content_view.h
src/wx/timeline_content_view.cc
src/wx/timeline_content_view.h
src/wx/timeline_dialog.cc
src/wx/timeline_dialog.h
src/wx/timeline_text_content_view.cc
src/wx/timeline_text_content_view.h
src/wx/timeline_video_content_view.cc
src/wx/timeline_video_content_view.h
src/wx/timeline_view.h
src/wx/timing_panel.cc
src/wx/timing_panel.h
src/wx/verify_dcp_dialog.cc
src/wx/verify_dcp_dialog.h
src/wx/verify_dcp_progress_dialog.cc
src/wx/verify_dcp_progress_dialog.h
src/wx/video_panel.cc
src/wx/video_view.cc
src/wx/video_view.h
src/wx/video_waveform_dialog.cc
src/wx/video_waveform_dialog.h
src/wx/video_waveform_plot.cc
src/wx/video_waveform_plot.h
src/wx/wx_util.cc
test/4k_test.cc
test/atmos_test.cc
test/audio_analysis_test.cc
test/audio_delay_test.cc
test/audio_filter_test.cc
test/audio_merger_test.cc
test/audio_processor_delay_test.cc
test/audio_processor_test.cc
test/audio_ring_buffers_test.cc
test/burnt_subtitle_test.cc
test/butler_test.cc
test/client_server_test.cc
test/closed_caption_test.cc
test/colour_conversion_test.cc
test/content_test.cc
test/cpl_hash_test.cc
test/dcp_decoder_test.cc
test/dcp_playback_test.cc
test/dcp_subtitle_test.cc
test/digest_test.cc
test/empty_test.cc
test/ffmpeg_audio_only_test.cc
test/ffmpeg_audio_test.cc
test/ffmpeg_dcp_test.cc
test/ffmpeg_decoder_seek_test.cc
test/ffmpeg_decoder_sequential_test.cc
test/ffmpeg_encoder_test.cc
test/ffmpeg_examiner_test.cc
test/ffmpeg_pts_offset_test.cc
test/file_naming_test.cc
test/film_metadata_test.cc
test/frame_rate_test.cc
test/hints_test.cc
test/image_content_fade_test.cc
test/image_proxy_test.cc
test/image_test.cc
test/import_dcp_test.cc
test/interrupt_encoder_test.cc
test/isdcf_name_test.cc
test/j2k_bandwidth_test.cc
test/job_test.cc
test/kdm_naming_test.cc
test/markers_test.cc
test/no_use_video_test.cc
test/optimise_stills_test.cc
test/player_test.cc
test/pulldown_detect_test.cc
test/recover_test.cc
test/reel_writer_test.cc
test/reels_test.cc
test/remake_id_test.cc
test/remake_with_subtitle_test.cc
test/repeat_frame_test.cc
test/required_disk_space_test.cc
test/resampler_test.cc
test/scaling_test.cc
test/shuffler_test.cc
test/silence_padding_test.cc
test/skip_frame_test.cc
test/socket_test.cc
test/srt_subtitle_test.cc
test/ssa_subtitle_test.cc
test/stream_test.cc
test/subtitle_charset_test.cc
test/subtitle_language_test.cc
test/subtitle_metadata_test.cc
test/subtitle_reel_number_test.cc
test/subtitle_reel_test.cc
test/subtitle_trim_test.cc
test/test.cc
test/test.h
test/threed_test.cc
test/time_calculation_test.cc
test/torture_test.cc
test/upmixer_a_test.cc
test/util_test.cc
test/vf_kdm_test.cc
test/vf_test.cc
test/video_level_test.cc
test/video_mxf_content_test.cc

index 3a7e1a27ebeff7a43e63877e65416fc82b102bb0..30f3b8ca661a5f68f406ec729b6c72df088cb1ed 100644 (file)
 
 */
 
+
 #include "active_text.h"
 #include "text_content.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
+
 
 using std::list;
 using std::pair;
 using std::make_pair;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 90b6b533bfe761d6bc205d6bfc93effe202ee259..f5211ae7f0cc68983c541b6ba0206dc6d41e178a 100644 (file)
@@ -40,9 +40,9 @@ public:
        std::list<PlayerText> get_burnt (dcpomatic::DCPTimePeriod period, bool always_burn_captions) const;
        void clear_before (dcpomatic::DCPTime time);
        void clear ();
-       void add_from (boost::weak_ptr<const TextContent> content, PlayerText ps, dcpomatic::DCPTime from);
-       std::pair<PlayerText, dcpomatic::DCPTime> add_to (boost::weak_ptr<const TextContent> content, dcpomatic::DCPTime to);
-       bool have (boost::weak_ptr<const TextContent> content) const;
+       void add_from (std::weak_ptr<const TextContent> content, PlayerText ps, dcpomatic::DCPTime from);
+       std::pair<PlayerText, dcpomatic::DCPTime> add_to (std::weak_ptr<const TextContent> content, dcpomatic::DCPTime to);
+       bool have (std::weak_ptr<const TextContent> content) const;
 
 private:
        class Period
@@ -60,7 +60,7 @@ private:
                boost::optional<dcpomatic::DCPTime> to;
        };
 
-       typedef std::map<boost::weak_ptr<const TextContent>, std::list<Period> > Map;
+       typedef std::map<std::weak_ptr<const TextContent>, std::list<Period>, std::owner_less<std::weak_ptr<const TextContent>>> Map;
 
        mutable boost::mutex _mutex;
        Map _data;
index 6ba6b5ecfe62999243f84f4b1516bafcaccb49c7..0d6a5e8b8a5e5d950184255f2d5f0fe555c3595a 100644 (file)
@@ -47,8 +47,8 @@ using std::vector;
 using std::max;
 using std::min;
 using std::cout;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 8f88b0fa143d42c88d68f678c809a5c906fe1f9a..81287d2d2fe3f41df890a8cd92c5faa73cbb9f96 100644 (file)
@@ -46,7 +46,7 @@ class Filter;
 class AnalyseAudioJob : public Job
 {
 public:
-       AnalyseAudioJob (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>, bool from_zero);
+       AnalyseAudioJob (std::shared_ptr<const Film>, std::shared_ptr<const Playlist>, bool from_zero);
        ~AnalyseAudioJob ();
 
        std::string name () const;
@@ -58,9 +58,9 @@ public:
        }
 
 private:
-       void analyse (boost::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
+       void analyse (std::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
 
-       boost::shared_ptr<const Playlist> _playlist;
+       std::shared_ptr<const Playlist> _playlist;
        /** playlist's audio analysis path when the job was created */
        boost::filesystem::path _path;
        dcpomatic::DCPTime _start;
@@ -73,9 +73,9 @@ private:
        float* _sample_peak;
        Frame* _sample_peak_frame;
 
-       boost::shared_ptr<AudioAnalysis> _analysis;
+       std::shared_ptr<AudioAnalysis> _analysis;
 
-       boost::shared_ptr<AudioFilterGraph> _ebur128;
+       std::shared_ptr<AudioFilterGraph> _ebur128;
        std::vector<Filter const *> _filters;
 
        boost::scoped_ptr<leqm_nrt::Calculator> _leqm;
index 92fb9657c143019486a6ff22b992926ca56f3570..df3cb3181a6b62ad66993c7c184c1cb541090640 100644 (file)
@@ -31,8 +31,8 @@
 #include "i18n.h"
 
 using std::string;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 88b5d23dc80645e15d7c6c6c8f35539053a0411c..5ad9dd4a4dae2e8f57198ee88d7f5efaf2ef75cc 100644 (file)
@@ -28,7 +28,7 @@ class Content;
 class AnalyseSubtitlesJob : public Job
 {
 public:
-       AnalyseSubtitlesJob (boost::shared_ptr<const Film> film, boost::shared_ptr<Content> content);
+       AnalyseSubtitlesJob (std::shared_ptr<const Film> film, std::shared_ptr<Content> content);
 
        std::string name () const;
        std::string json_name () const;
@@ -41,7 +41,7 @@ public:
 private:
        void analyse (PlayerText text, TextType type);
 
-       boost::weak_ptr<Content> _content;
+       std::weak_ptr<Content> _content;
        boost::filesystem::path _path;
        boost::optional<dcpomatic::Rect<double> > _bounding_box;
 };
index 0543437a30ca06e7a44ea6a3fbf0249fec2d96ab..e69474e01807756763c7f24fa4890a7a97358e56 100644 (file)
@@ -28,7 +28,7 @@ DCPOMATIC_ENABLE_WARNINGS
 
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 int const AtmosContentProperty::EDIT_RATE = 700;
index 0344b6225d5f9f599964a1185cda46b0ce0befec..948c3d3c0638bc216dd071544873fe4b7df22eff 100644 (file)
@@ -37,7 +37,7 @@ class AtmosContent : public ContentPart
 public:
        AtmosContent (Content* parent);
 
-       static boost::shared_ptr<AtmosContent> from_xml (Content* parent, cxml::ConstNodePtr node);
+       static std::shared_ptr<AtmosContent> from_xml (Content* parent, cxml::ConstNodePtr node);
 
        void as_xml (xmlpp::Node* node) const;
 
index 4ebb07f8ac19818c173c2cfb69adcad4a2a71d19..51ee7f0a48e010460befdfae8b3234f5167fa22b 100644 (file)
@@ -27,7 +27,7 @@
 #include "film.h"
 
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 AtmosDecoder::AtmosDecoder (Decoder* parent, shared_ptr<const Content> content)
index 3003d5a076a177e5c2fb8da132691c618186e7a7..935fd9925d8b2c1db7c7716aa4cd929494f70beb 100644 (file)
 class AtmosDecoder : public DecoderPart
 {
 public:
-       AtmosDecoder (Decoder* parent, boost::shared_ptr<const Content> content);
+       AtmosDecoder (Decoder* parent, std::shared_ptr<const Content> content);
 
-       boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const {
+       boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film>) const {
                return _position;
        }
 
        void seek ();
 
-       void emit (boost::shared_ptr<const Film> film, boost::shared_ptr<const dcp::AtmosFrame> data, Frame frame, AtmosMetadata metadata);
+       void emit (std::shared_ptr<const Film> film, std::shared_ptr<const dcp::AtmosFrame> data, Frame frame, AtmosMetadata metadata);
 
        boost::signals2::signal<void (ContentAtmos)> Data;
 
 private:
-       boost::shared_ptr<const Content> _content;
+       std::shared_ptr<const Content> _content;
        boost::optional<dcpomatic::ContentTime> _position;
 };
index 0a4b4f1b10126296ceda088c5eede7ce6e4a01d4..0fe23f3b0f4b8e4d5404922ed83e251bf44aa41d 100644 (file)
@@ -23,7 +23,7 @@
 #include <dcp/atmos_asset.h>
 
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 AtmosMetadata::AtmosMetadata (shared_ptr<const dcp::AtmosAsset> asset)
index 4e3fc855f5a812686deaaf929ab4d77164570fd4..65f2cc6c260f5217278f5794c3469992254b2f5f 100644 (file)
 #define DCPOMATIC_ATMOS_METADATA_H
 
 #include <dcp/atmos_asset.h>
-#include <boost/shared_ptr.hpp>
 
 class AtmosMetadata
 {
 public:
-       AtmosMetadata (boost::shared_ptr<const dcp::AtmosAsset> asset);
-       boost::shared_ptr<dcp::AtmosAsset> create (dcp::Fraction edit_rate) const;
+       AtmosMetadata (std::shared_ptr<const dcp::AtmosAsset> asset);
+       std::shared_ptr<dcp::AtmosAsset> create (dcp::Fraction edit_rate) const;
 
 private:
        int _first_frame;
index 36ae8871a774183f57b5b0e67e2b3451e1f5cc82..3f41a52a09e165856a43fa50e87b38b70a8620cf 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 AtmosMXFContent::AtmosMXFContent (boost::filesystem::path path)
index 350c4a35d3b48a8f8270847a5b3df5de39f42d2a..b485167c553a820df7c87c8218ba22e6e9c5ccab 100644 (file)
 
 */
 
+
 #include "content.h"
+#include <memory>
+
 
 class AtmosMXFContent : public Content
 {
@@ -26,18 +29,18 @@ public:
        AtmosMXFContent (boost::filesystem::path path);
        AtmosMXFContent (cxml::ConstNodePtr node, int version);
 
-       boost::shared_ptr<AtmosMXFContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<AtmosMXFContent> (Content::shared_from_this ());
+       std::shared_ptr<AtmosMXFContent> shared_from_this () {
+               return std::dynamic_pointer_cast<AtmosMXFContent> (Content::shared_from_this());
        }
 
-       boost::shared_ptr<const AtmosMXFContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const AtmosMXFContent> (Content::shared_from_this ());
+       std::shared_ptr<const AtmosMXFContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const AtmosMXFContent> (Content::shared_from_this());
        }
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job> job);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job> job);
        std::string summary () const;
        void as_xml (xmlpp::Node* node, bool with_path) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
 
        static bool valid_mxf (boost::filesystem::path path);
index 3f6f4a857b449d273caf5d53b1c26cbaab3bef4f..6c7cda61a632e248d71470ff941db3f8b786b5da 100644 (file)
@@ -26,9 +26,9 @@
 #include <dcp/atmos_asset.h>
 #include <dcp/atmos_asset_reader.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
-AtmosMXFDecoder::AtmosMXFDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const AtmosMXFContent> content)
+AtmosMXFDecoder::AtmosMXFDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const AtmosMXFContent> content)
        : Decoder (film)
        , _content (content)
 {
index f5b7fe1eef1d3f69f2e4ffcfe5cdb3fc7c4d2c7e..4e7ce5c6f34cbd71f879799075363bd912b158b5 100644 (file)
@@ -28,15 +28,15 @@ class AtmosMXFContent;
 class AtmosMXFDecoder : public Decoder
 {
 public:
-       AtmosMXFDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const AtmosMXFContent>);
+       AtmosMXFDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const AtmosMXFContent>);
 
        bool pass ();
        void seek (dcpomatic::ContentTime t, bool accurate);
 
 private:
-       boost::shared_ptr<const AtmosMXFContent> _content;
+       std::shared_ptr<const AtmosMXFContent> _content;
        dcpomatic::ContentTime _next;
-       boost::shared_ptr<dcp::AtmosAssetReader> _reader;
+       std::shared_ptr<dcp::AtmosAssetReader> _reader;
        boost::optional<AtmosMetadata> _metadata;
 };
 
index f69bcd362db164e23c31e01d73bdf3399f01b9e9..41591b062c0f610ef5aa1e0c45db90fa54b620e4 100644 (file)
@@ -45,9 +45,9 @@ using std::max;
 using std::pair;
 using std::make_pair;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using dcp::raw_convert;
 using namespace dcpomatic;
 
index 99a69edb4c26dfccccb77cd81c48e069301a436f..c3aec6e29f6a059585ac6d13720574fd7dd3b189 100644 (file)
@@ -126,7 +126,7 @@ public:
 
        void write (boost::filesystem::path);
 
-       float gain_correction (boost::shared_ptr<const Playlist> playlist);
+       float gain_correction (std::shared_ptr<const Playlist> playlist);
 
 private:
        std::vector<std::vector<AudioPoint> > _data;
index cfe762659ebdb6d91128557b35cccb3c08c56144..1de2af2ec7627ae875baa0f7aa6287e4596c55a3 100644 (file)
@@ -27,7 +27,7 @@
 #include <stdexcept>
 
 using std::bad_alloc;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Construct an AudioBuffers.  Audio data is undefined after this constructor.
  *  @param channels Number of channels.
@@ -47,13 +47,13 @@ AudioBuffers::AudioBuffers (AudioBuffers const & other)
        copy_from (&other, other._frames, 0, 0);
 }
 
-AudioBuffers::AudioBuffers (boost::shared_ptr<const AudioBuffers> other)
+AudioBuffers::AudioBuffers (std::shared_ptr<const AudioBuffers> other)
 {
        allocate (other->_channels, other->_frames);
        copy_from (other.get(), other->_frames, 0, 0);
 }
 
-AudioBuffers::AudioBuffers (boost::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset)
+AudioBuffers::AudioBuffers (std::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset)
 {
        allocate (other->_channels, frames_to_copy);
        copy_from (other.get(), frames_to_copy, read_offset, 0);
index 63e4fac9d5089421374dcdb66033226df65c5e11..7a02b2b0a458c7f51a75bd62cced144b905d4685 100644 (file)
  *  @brief AudioBuffers class.
  */
 
+
 #ifndef DCPOMATIC_AUDIO_BUFFERS_H
 #define DCPOMATIC_AUDIO_BUFFERS_H
 
-#include <boost/shared_ptr.hpp>
+
 #include <stdint.h>
+#include <memory>
+
 
 /** @class AudioBuffers
  *  @brief A class to hold multi-channel audio data in float format.
@@ -40,14 +43,14 @@ class AudioBuffers
 public:
        AudioBuffers (int channels, int32_t frames);
        AudioBuffers (AudioBuffers const &);
-       explicit AudioBuffers (boost::shared_ptr<const AudioBuffers>);
-       AudioBuffers (boost::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset);
+       explicit AudioBuffers (std::shared_ptr<const AudioBuffers>);
+       AudioBuffers (std::shared_ptr<const AudioBuffers> other, int32_t frames_to_copy, int32_t read_offset);
        ~AudioBuffers ();
 
        AudioBuffers & operator= (AudioBuffers const &);
 
-       boost::shared_ptr<AudioBuffers> clone () const;
-       boost::shared_ptr<AudioBuffers> channel (int) const;
+       std::shared_ptr<AudioBuffers> clone () const;
+       std::shared_ptr<AudioBuffers> channel (int) const;
 
        void ensure_size (int32_t);
 
@@ -78,7 +81,7 @@ public:
        void move (int32_t frames, int32_t from, int32_t to);
        void accumulate_channel (AudioBuffers const * from, int from_channel, int to_channel, float gain = 1);
        void accumulate_frames (AudioBuffers const * from, int32_t frames, int32_t read_offset, int32_t write_offset);
-       void append (boost::shared_ptr<const AudioBuffers> other);
+       void append (std::shared_ptr<const AudioBuffers> other);
        void trim_start (int32_t frames);
 
 private:
index 22521c9e9b8be6ab6a263ef44b62b7ed22302e5f..79a00b24934a577be5298ae716b2f76428c06070 100644 (file)
@@ -39,8 +39,8 @@ using std::fixed;
 using std::list;
 using std::pair;
 using std::setprecision;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using dcp::raw_convert;
 using namespace dcpomatic;
index b109cc15e199b43b96f69626e062f5ea0b244287..83a5e327e87c02c0da9f98d987269bd858e72f6d 100644 (file)
@@ -44,15 +44,15 @@ class AudioContent : public ContentPart
 {
 public:
        explicit AudioContent (Content* parent);
-       AudioContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
+       AudioContent (Content* parent, std::vector<std::shared_ptr<Content> >);
 
        void as_xml (xmlpp::Node *) const;
        std::string technical_summary () const;
-       void take_settings_from (boost::shared_ptr<const AudioContent> c);
+       void take_settings_from (std::shared_ptr<const AudioContent> c);
 
        AudioMapping mapping () const;
        void set_mapping (AudioMapping);
-       int resampled_frame_rate (boost::shared_ptr<const Film> film) const;
+       int resampled_frame_rate (std::shared_ptr<const Film> film) const;
        std::vector<NamedChannel> channel_names () const;
 
        void set_gain (double);
@@ -68,7 +68,7 @@ public:
                return _delay;
        }
 
-       std::string processing_description (boost::shared_ptr<const Film> film) const;
+       std::string processing_description (std::shared_ptr<const Film> film) const;
 
        std::vector<AudioStreamPtr> streams () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -80,12 +80,12 @@ public:
        void set_streams (std::vector<AudioStreamPtr> streams);
        AudioStreamPtr stream () const;
 
-       void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty> &) const;
+       void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty> &) const;
 
-       void modify_position (boost::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
+       void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
        void modify_trim_start (dcpomatic::ContentTime& pos) const;
 
-       static boost::shared_ptr<AudioContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);
+       static std::shared_ptr<AudioContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);
 
 private:
 
index 051fb4dd8bebe7eff08b69f095edc18a681c8551..5334dfa345071e887fa6e9f7a04d34701d23054b 100644 (file)
@@ -33,7 +33,7 @@
 using std::cout;
 using std::map;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 897ddb7e40b8253ecb54c74e4b3fb58a98d3c4ef..2b6e3f75879889e4e7b713a8b119b3179d0bdb23 100644 (file)
@@ -29,7 +29,6 @@
 #include "content_audio.h"
 #include "audio_stream.h"
 #include "decoder_part.h"
-#include <boost/enable_shared_from_this.hpp>
 #include <boost/signals2.hpp>
 
 class AudioBuffers;
@@ -42,30 +41,30 @@ class Resampler;
 /** @class AudioDecoder.
  *  @brief Parent class for audio decoders.
  */
-class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart
+class AudioDecoder : public std::enable_shared_from_this<AudioDecoder>, public DecoderPart
 {
 public:
-       AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, bool fast);
+       AudioDecoder (Decoder* parent, std::shared_ptr<const AudioContent> content, bool fast);
 
-       boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const;
-       void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime, bool time_already_delayed = false);
+       boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film> film) const;
+       void emit (std::shared_ptr<const Film> film, AudioStreamPtr stream, std::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime, bool time_already_delayed = false);
        void seek ();
        void flush ();
 
-       dcpomatic::ContentTime stream_position (boost::shared_ptr<const Film> film, AudioStreamPtr stream) const;
+       dcpomatic::ContentTime stream_position (std::shared_ptr<const Film> film, AudioStreamPtr stream) const;
 
        boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data;
 
 private:
        void silence (int milliseconds);
 
-       boost::shared_ptr<const AudioContent> _content;
+       std::shared_ptr<const AudioContent> _content;
        /** Frame after the last one that was emitted from Data (i.e. at the resampled rate, if applicable)
         *  for each AudioStream.
         */
        typedef std::map<AudioStreamPtr, Frame> PositionMap;
        PositionMap _positions;
-       typedef std::map<AudioStreamPtr, boost::shared_ptr<Resampler> > ResamplerMap;
+       typedef std::map<AudioStreamPtr, std::shared_ptr<Resampler> > ResamplerMap;
        ResamplerMap _resamplers;
 
        bool _fast;
index 391a201a25253e980931431798aa948cf09ba9b6..167c522e8f7ebfa01f0ba3b86f2f15855e937962 100644 (file)
@@ -24,7 +24,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 AudioDelay::AudioDelay (int samples)
        : _samples (samples)
index 44e8c009b9464dcb205d03e931d3bff011328da9..3731013e5e7df01472a9e53c0efd36b92aa894c1 100644 (file)
@@ -18,7 +18,9 @@
 
 */
 
-#include <boost/shared_ptr.hpp>
+
+#include <memory>
+
 
 class AudioBuffers;
 
@@ -29,10 +31,10 @@ class AudioDelay
 {
 public:
        explicit AudioDelay (int samples);
-       boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers> in);
+       std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers> in);
        void flush ();
 
 private:
-       boost::shared_ptr<AudioBuffers> _tail;
+       std::shared_ptr<AudioBuffers> _tail;
        int _samples;
 };
index 3d3ecdfbb3deed7bfef315818646ffaf12e0dac3..24aa244f2fe7bc2e18da7b5259f0a09e10b44d78 100644 (file)
@@ -24,7 +24,7 @@
 #include <cmath>
 
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @return array of floats which the caller must destroy with delete[] */
 float *
index fb7b7b92ccb64283d7bc01235b35d486f0c5422b..500cfa6e258b5b4d39fe5323596d75a5552b45d4 100644 (file)
@@ -21,7 +21,9 @@
 #ifndef DCPOMATIC_AUDIO_FILTER_H
 #define DCPOMATIC_AUDIO_FILTER_H
 
-#include <boost/shared_ptr.hpp>
+
+#include <memory>
+
 
 class AudioBuffers;
 struct audio_filter_impulse_input_test;
@@ -43,7 +45,7 @@ public:
 
        virtual ~AudioFilter ();
 
-       boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers> in);
+       std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers> in);
 
        void flush ();
 
@@ -55,7 +57,7 @@ protected:
 
        float* _ir;
        int _M;
-       boost::shared_ptr<AudioBuffers> _tail;
+       std::shared_ptr<AudioBuffers> _tail;
 };
 
 class LowPassAudioFilter : public AudioFilter
index 0eeeb3c4ae5858b094ffd4f5da58ab659f9d3b75..6318c68ab58fbced508595bd74cbac9c8632706c 100644 (file)
@@ -32,7 +32,7 @@ extern "C" {
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 AudioFilterGraph::AudioFilterGraph (int sample_rate, int channels)
        : _sample_rate (sample_rate)
index fa52741b9280097334309bb4fe1dc14a204054b9..91216c7c3657cb4c88b4ed4533c3ca650b28ef8d 100644 (file)
@@ -31,7 +31,7 @@ public:
        AudioFilterGraph (int sample_rate, int channels);
        ~AudioFilterGraph ();
 
-       void process (boost::shared_ptr<const AudioBuffers> audio);
+       void process (std::shared_ptr<const AudioBuffers> audio);
 
 protected:
        std::string src_parameters () const;
index 40dc4ebfa5bc042542a1cb9b112404c863e9c6ef..37a3d5fa22b8d8dc03b684e08a4f7842b747391f 100644 (file)
@@ -39,8 +39,8 @@ using std::string;
 using std::min;
 using std::vector;
 using std::abs;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using dcp::raw_convert;
 
index 74bb7717d4719fcde04d54bce70e29304435adbe..347a96f5a96969869fb591efcf84644e6f259fb6 100644 (file)
@@ -31,7 +31,7 @@ using std::max;
 using std::list;
 using std::cout;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
@@ -95,7 +95,7 @@ AudioMerger::pull (DCPTime time)
 
 /** Push some data into the merger at a given time */
 void
-AudioMerger::push (boost::shared_ptr<const AudioBuffers> audio, DCPTime time)
+AudioMerger::push (std::shared_ptr<const AudioBuffers> audio, DCPTime time)
 {
        DCPOMATIC_ASSERT (audio->frames() > 0);
 
index d5a6ec43ad80ecd233049a971b813f8295785e33..adaf72f8189acd7cd22a228e8a0d8cb99f2878e5 100644 (file)
@@ -33,8 +33,8 @@ class AudioMerger
 public:
        explicit AudioMerger (int frame_rate);
 
-       std::list<std::pair<boost::shared_ptr<AudioBuffers>, dcpomatic::DCPTime> > pull (dcpomatic::DCPTime time);
-       void push (boost::shared_ptr<const AudioBuffers> audio, dcpomatic::DCPTime time);
+       std::list<std::pair<std::shared_ptr<AudioBuffers>, dcpomatic::DCPTime> > pull (dcpomatic::DCPTime time);
+       void push (std::shared_ptr<const AudioBuffers> audio, dcpomatic::DCPTime time);
        void clear ();
 
 private:
@@ -54,13 +54,13 @@ private:
                        , frame_rate (r)
                {}
 
-               Buffer (boost::shared_ptr<AudioBuffers> a, dcpomatic::DCPTime t, int r)
+               Buffer (std::shared_ptr<AudioBuffers> a, dcpomatic::DCPTime t, int r)
                        : audio (a)
                        , time (t)
                        , frame_rate (r)
                {}
 
-               boost::shared_ptr<AudioBuffers> audio;
+               std::shared_ptr<AudioBuffers> audio;
                dcpomatic::DCPTime time;
                int frame_rate;
 
index 194c9bf0e63d46b523ff0917ed3f21408e4365a5..e2f1c48ebf6eefb5aa456de185f014ee7787e8d3 100644 (file)
@@ -26,7 +26,6 @@
 #define DCPOMATIC_AUDIO_PROCESSOR_H
 
 #include "types.h"
-#include <boost/shared_ptr.hpp>
 #include <list>
 #include <string>
 #include <vector>
@@ -52,9 +51,9 @@ public:
        /** @return Number of output channels */
        virtual int out_channels () const = 0;
        /** @return A clone of this AudioProcessor for operation at the specified sampling rate */
-       virtual boost::shared_ptr<AudioProcessor> clone (int sampling_rate) const = 0;
+       virtual std::shared_ptr<AudioProcessor> clone (int sampling_rate) const = 0;
        /** Process some data, returning the processed result truncated or padded to `channels' */
-       virtual boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels) = 0;
+       virtual std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers>, int channels) = 0;
        virtual void flush () {}
        /** Make the supplied audio mapping into a sensible default for this processor */
        virtual void make_audio_mapping_default (AudioMapping& mapping) const = 0;
index cd7f4f597fbfaf8f35ebcd5e998f3e20edccb72d..c0559f61c5b11283ef3e67f22ffcaea33c7f0a97 100644 (file)
@@ -29,7 +29,7 @@ using std::cout;
 using std::make_pair;
 using std::pair;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index bfaad5ec97074d0077ca9376bb636d4c4bdf55d0..2cfc0a30bbe534cfa6a4941c8adb141d38a46873 100644 (file)
@@ -24,7 +24,6 @@
 #include "audio_buffers.h"
 #include "types.h"
 #include "dcpomatic_time.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/thread.hpp>
 #include <list>
 
@@ -33,7 +32,7 @@ class AudioRingBuffers : public boost::noncopyable
 public:
        AudioRingBuffers ();
 
-       void put (boost::shared_ptr<const AudioBuffers> data, dcpomatic::DCPTime time, int frame_rate);
+       void put (std::shared_ptr<const AudioBuffers> data, dcpomatic::DCPTime time, int frame_rate);
        boost::optional<dcpomatic::DCPTime> get (float* out, int channels, int frames);
        boost::optional<dcpomatic::DCPTime> peek () const;
 
@@ -42,7 +41,7 @@ public:
 
 private:
        mutable boost::mutex _mutex;
-       std::list<std::pair<boost::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime> > _buffers;
+       std::list<std::pair<std::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime> > _buffers;
        int _used_in_head;
 };
 
index e50a53b8ad479b1baef0ab229853aa15cfd091a5..a7e204065432c4a33e011a69e594e228e7efc2c6 100644 (file)
@@ -65,6 +65,6 @@ private:
        AudioMapping _mapping;
 };
 
-typedef boost::shared_ptr<AudioStream> AudioStreamPtr;
+typedef std::shared_ptr<AudioStream> AudioStreamPtr;
 
 #endif
index 2314c2db0cec2ad1a521c24fcc008bd640e20cca..b8861c10a651986795a57e0cdca5f6aa914dbad0 100644 (file)
 #ifndef DCPOMATIC_BITMAP_CAPTION_H
 #define DCPOMATIC_BITMAP_CAPTION_H
 
+
 #include "rect.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
+
 
 class Image;
 
 class BitmapText
 {
 public:
-       BitmapText (boost::shared_ptr<Image> i, dcpomatic::Rect<double> r)
+       BitmapText (std::shared_ptr<Image> i, dcpomatic::Rect<double> r)
                : image (i)
                , rectangle (r)
        {}
 
-       boost::shared_ptr<Image> image;
+       std::shared_ptr<Image> image;
        /** Area that the subtitle covers on its corresponding video, expressed in
         *  proportions of the image size; e.g. rectangle.x = 0.5 would mean that
         *  the rectangle starts half-way across the video.
index 270abd2d6348dc32f6d7009cfde5683c3f4b8c91..d09b0356a7829e8afa5be0714d8c8d585e1296f2 100644 (file)
 #include "compose.hpp"
 #include "exceptions.h"
 #include "video_content.h"
-#include <boost/weak_ptr.hpp>
-#include <boost/shared_ptr.hpp>
+
 
 using std::cout;
 using std::pair;
 using std::make_pair;
 using std::string;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 using boost::bind;
 using boost::optional;
 using boost::function;
index ab6fd7853cd56bb255365cb4e9cb68704e6bd45b..49a57a826e4acdcad84c1568f5c3e059d7f00657 100644 (file)
@@ -23,8 +23,6 @@
 #include "text_ring_buffers.h"
 #include "audio_mapping.h"
 #include "exception_store.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/thread.hpp>
 #include <boost/thread/condition.hpp>
 #include <boost/signals2.hpp>
@@ -37,8 +35,8 @@ class Butler : public ExceptionStore, public boost::noncopyable
 {
 public:
        Butler (
-               boost::weak_ptr<const Film> film,
-               boost::shared_ptr<Player> player,
+               std::weak_ptr<const Film> film,
+               std::shared_ptr<Player> player,
                AudioMapping map,
                int audio_channels,
                boost::function<AVPixelFormat (AVPixelFormat)> pixel_format,
@@ -70,7 +68,7 @@ public:
                std::string summary () const;
        };
 
-       std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get_video (bool blocking, Error* e = 0);
+       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get_video (bool blocking, Error* e = 0);
        boost::optional<dcpomatic::DCPTime> get_audio (float* out, Frame frames);
        boost::optional<TextRingBuffers::Data> get_closed_caption ();
 
@@ -80,16 +78,16 @@ public:
 
 private:
        void thread ();
-       void video (boost::shared_ptr<PlayerVideo> video, dcpomatic::DCPTime time);
-       void audio (boost::shared_ptr<AudioBuffers> audio, dcpomatic::DCPTime time, int frame_rate);
+       void video (std::shared_ptr<PlayerVideo> video, dcpomatic::DCPTime time);
+       void audio (std::shared_ptr<AudioBuffers> audio, dcpomatic::DCPTime time, int frame_rate);
        void text (PlayerText pt, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period);
        bool should_run () const;
-       void prepare (boost::weak_ptr<PlayerVideo> video);
+       void prepare (std::weak_ptr<PlayerVideo> video);
        void player_change (ChangeType type, int property);
        void seek_unlocked (dcpomatic::DCPTime position, bool accurate);
 
-       boost::weak_ptr<const Film> _film;
-       boost::shared_ptr<Player> _player;
+       std::weak_ptr<const Film> _film;
+       std::shared_ptr<Player> _player;
        boost::thread _thread;
 
        VideoRingBuffers _video;
@@ -98,7 +96,7 @@ private:
 
        boost::thread_group _prepare_pool;
        boost::asio::io_service _prepare_service;
-       boost::shared_ptr<boost::asio::io_service::work> _prepare_work;
+       std::shared_ptr<boost::asio::io_service::work> _prepare_work;
 
        /** mutex to protect _pending_seek_position, _pending_seek_accurate, _finished, _died, _stop_thread */
        boost::mutex _mutex;
index 644e730bbacf7025fe050e4f30fc9b67d80793e5..45a662e37e216dc3a5720441651ec6390c6887fb 100644 (file)
@@ -31,7 +31,7 @@
 using std::string;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param gui true if we are running this job from the GUI, false if it's the CLI */
 CheckContentChangeJob::CheckContentChangeJob (shared_ptr<const Film> film, shared_ptr<Job> following, bool gui)
index 152cdb9e7338f11f0a174333555476e3005be38f..739d2651f426c535d3fde8f383f07a3a612132d7 100644 (file)
@@ -27,7 +27,7 @@
 class CheckContentChangeJob : public Job
 {
 public:
-       CheckContentChangeJob (boost::shared_ptr<const Film>, boost::shared_ptr<Job> following = boost::shared_ptr<Job>(), bool gui = true);
+       CheckContentChangeJob (std::shared_ptr<const Film>, std::shared_ptr<Job> following = std::shared_ptr<Job>(), bool gui = true);
        ~CheckContentChangeJob ();
 
        std::string name () const;
@@ -35,6 +35,6 @@ public:
        void run ();
 
 private:
-       boost::shared_ptr<Job> _following;
+       std::shared_ptr<Job> _following;
        bool _gui;
 };
index 1902f15f9f4f091433f3fc10e12c8f4b5a301381..48cba2b8fcf58e0e387289c985d1ebed3bfb3a12 100644 (file)
@@ -29,7 +29,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::raw_convert;
 using dcpomatic::Screen;
 
index 86245953b85b830d4031b3c5bbec0025a598ef2e..daa4aa8bf3f6a520fda7064206ff6a71e8d15908 100644 (file)
  *  @brief Cinema class.
  */
 
+
 #include <libcxml/cxml.h>
-#include <boost/enable_shared_from_this.hpp>
+#include <memory>
+
 
 namespace xmlpp {
        class Element;
@@ -39,7 +41,7 @@ namespace dcpomatic {
  *  This is a cinema name, some metadata and a list of
  *  Screen objects.
  */
-class Cinema : public boost::enable_shared_from_this<Cinema>
+class Cinema : public std::enable_shared_from_this<Cinema>
 {
 public:
        Cinema (std::string const & name_, std::list<std::string> const & e, std::string notes_, int utc_offset_hour, int utc_offset_minute)
@@ -56,8 +58,8 @@ public:
 
        void as_xml (xmlpp::Element *) const;
 
-       void add_screen (boost::shared_ptr<dcpomatic::Screen>);
-       void remove_screen (boost::shared_ptr<dcpomatic::Screen>);
+       void add_screen (std::shared_ptr<dcpomatic::Screen>);
+       void remove_screen (std::shared_ptr<dcpomatic::Screen>);
 
        void set_utc_offset_hour (int h);
        void set_utc_offset_minute (int m);
@@ -74,12 +76,12 @@ public:
                return _utc_offset_minute;
        }
 
-       std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const {
+       std::list<std::shared_ptr<dcpomatic::Screen> > screens () const {
                return _screens;
        }
 
 private:
-       std::list<boost::shared_ptr<dcpomatic::Screen> > _screens;
+       std::list<std::shared_ptr<dcpomatic::Screen> > _screens;
        /** Offset such that the equivalent time in UTC can be determined
            by subtracting the offset from the local time.
        */
index 22404c2796d165fe0716ea461ac36ad3a0e187fd..d0e0f46388a87c080acd7c547e833bf7e60ef07b 100644 (file)
@@ -42,9 +42,9 @@ using std::list;
 using std::string;
 using std::cout;
 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 dcp::raw_convert;
 
 vector<PresetColourConversion> PresetColourConversion::_presets;
index b3c29b2056fe98b94e8f448c3c638ed3d32a57da..3497d4b72a6a986cb8cf611d00af5a8b4fdaa0e1 100644 (file)
@@ -28,7 +28,7 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 CombineDCPJob::CombineDCPJob (vector<boost::filesystem::path> inputs, boost::filesystem::path output)
index 6e8106aaed1e7a9e25d4dc3e70521ac892002d44..e2425799d16f8253efb1fd6ba88b3a9fe5a50e30 100644 (file)
@@ -59,9 +59,9 @@ using std::max;
 using std::remove;
 using std::exception;
 using std::cerr;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::algorithm::trim;
 using dcp::raw_convert;
 
index 87afcbba829bac3944a04494f55ca9e62f29fc26..957a846665c8045dc67fe25fc70f4cea744a9ec4 100644 (file)
@@ -33,7 +33,6 @@
 #include <dcp/name_format.h>
 #include <dcp/certificate_chain.h>
 #include <dcp/encrypted_kdm.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <boost/filesystem.hpp>
 #include <vector>
@@ -142,11 +141,11 @@ public:
                return _tms_password;
        }
 
-       std::list<boost::shared_ptr<Cinema> > cinemas () const {
+       std::list<std::shared_ptr<Cinema> > cinemas () const {
                return _cinemas;
        }
 
-       std::list<boost::shared_ptr<DKDMRecipient> > dkdm_recipients () const {
+       std::list<std::shared_ptr<DKDMRecipient> > dkdm_recipients () const {
                return _dkdm_recipients;
        }
 
@@ -302,11 +301,11 @@ public:
                return _notification_email;
        }
 
-       boost::shared_ptr<const dcp::CertificateChain> signer_chain () const {
+       std::shared_ptr<const dcp::CertificateChain> signer_chain () const {
                return _signer_chain;
        }
 
-       boost::shared_ptr<const dcp::CertificateChain> decryption_chain () const {
+       std::shared_ptr<const dcp::CertificateChain> decryption_chain () const {
                return _decryption_chain;
        }
 
@@ -348,7 +347,7 @@ public:
                return _player_history;
        }
 
-       boost::shared_ptr<DKDMGroup> dkdms () const {
+       std::shared_ptr<DKDMGroup> dkdms () const {
                return _dkdms;
        }
 
@@ -588,22 +587,22 @@ public:
                maybe_set (_tms_password, p);
        }
 
-       void add_cinema (boost::shared_ptr<Cinema> c) {
+       void add_cinema (std::shared_ptr<Cinema> c) {
                _cinemas.push_back (c);
                changed (CINEMAS);
        }
 
-       void remove_cinema (boost::shared_ptr<Cinema> c) {
+       void remove_cinema (std::shared_ptr<Cinema> c) {
                _cinemas.remove (c);
                changed (CINEMAS);
        }
 
-       void add_dkdm_recipient (boost::shared_ptr<DKDMRecipient> c) {
+       void add_dkdm_recipient (std::shared_ptr<DKDMRecipient> c) {
                _dkdm_recipients.push_back (c);
                changed (DKDM_RECIPIENTS);
        }
 
-       void remove_dkdm_recipient (boost::shared_ptr<DKDMRecipient> c) {
+       void remove_dkdm_recipient (std::shared_ptr<DKDMRecipient> c) {
                _dkdm_recipients.remove (c);
                changed (DKDM_RECIPIENTS);
        }
@@ -769,11 +768,11 @@ public:
 
        void reset_notification_email ();
 
-       void set_signer_chain (boost::shared_ptr<const dcp::CertificateChain> s) {
+       void set_signer_chain (std::shared_ptr<const dcp::CertificateChain> s) {
                maybe_set (_signer_chain, s);
        }
 
-       void set_decryption_chain (boost::shared_ptr<const dcp::CertificateChain> c) {
+       void set_decryption_chain (std::shared_ptr<const dcp::CertificateChain> c) {
                maybe_set (_decryption_chain, c);
        }
 
@@ -810,7 +809,7 @@ public:
        }
 #endif
 
-       void set_dkdms (boost::shared_ptr<DKDMGroup> dkdms) {
+       void set_dkdms (std::shared_ptr<DKDMGroup> dkdms) {
                _dkdms = dkdms;
                changed ();
        }
@@ -1075,7 +1074,7 @@ public:
        void copy_and_link (boost::filesystem::path new_file) const;
        bool have_write_permission () const;
 
-       void save_template (boost::shared_ptr<const Film> film, std::string name) const;
+       void save_template (std::shared_ptr<const Film> film, std::string name) const;
        bool existing_template (std::string name) const;
        std::list<std::string> templates () const;
        boost::filesystem::path template_path (std::string name) const;
@@ -1097,7 +1096,7 @@ private:
        void set_cover_sheet_to_default ();
        void read_cinemas (cxml::Document const & f);
        void read_dkdm_recipients (cxml::Document const & f);
-       boost::shared_ptr<dcp::CertificateChain> create_certificate_chain ();
+       std::shared_ptr<dcp::CertificateChain> create_certificate_chain ();
        boost::filesystem::path directory_or (boost::optional<boost::filesystem::path> dir, boost::filesystem::path a) const;
        void add_to_history_internal (std::vector<boost::filesystem::path>& h, boost::filesystem::path p);
        void clean_history_internal (std::vector<boost::filesystem::path>& h);
@@ -1178,8 +1177,8 @@ private:
        */
        boost::optional<boost::filesystem::path> _default_kdm_directory;
        bool _upload_after_make_dcp;
-       std::list<boost::shared_ptr<Cinema> > _cinemas;
-       std::list<boost::shared_ptr<DKDMRecipient> > _dkdm_recipients;
+       std::list<std::shared_ptr<Cinema> > _cinemas;
+       std::list<std::shared_ptr<DKDMRecipient> > _dkdm_recipients;
        std::string _mail_server;
        int _mail_port;
        EmailProtocol _mail_protocol;
@@ -1196,11 +1195,11 @@ private:
        std::vector<std::string> _notification_cc;
        std::string _notification_bcc;
        std::string _notification_email;
-       boost::shared_ptr<const dcp::CertificateChain> _signer_chain;
+       std::shared_ptr<const dcp::CertificateChain> _signer_chain;
        /** Chain used to decrypt KDMs; the leaf of this chain is the target
         *  certificate for making KDMs given to DCP-o-matic.
         */
-       boost::shared_ptr<const dcp::CertificateChain> _decryption_chain;
+       std::shared_ptr<const dcp::CertificateChain> _decryption_chain;
        /** true to check for updates on startup */
        bool _check_for_updates;
        bool _check_for_test_updates;
@@ -1214,7 +1213,7 @@ private:
 #endif
        std::vector<boost::filesystem::path> _history;
        std::vector<boost::filesystem::path> _player_history;
-       boost::shared_ptr<DKDMGroup> _dkdms;
+       std::shared_ptr<DKDMGroup> _dkdms;
        boost::filesystem::path _cinemas_file;
        boost::filesystem::path _dkdm_recipients_file;
        bool _show_hints_before_make_dcp;
index 4242477d483a06fbfb877d90e8fa74c4f0f5db3c..efcec534c433ec9b1b36c6903eb4d061504dcb28 100644 (file)
@@ -48,7 +48,7 @@ using std::cout;
 using std::vector;
 using std::max;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
 using dcp::locale_convert;
@@ -206,7 +206,7 @@ Content::signal_change (ChangeType c, int p)
                } else {
                        emit (boost::bind (boost::ref(Change), c, shared_from_this(), p, _change_signals_frequent));
                }
-       } catch (boost::bad_weak_ptr &) {
+       } catch (std::bad_weak_ptr &) {
                /* This must be during construction; never mind */
        }
 }
index 5f8e9f53d3a8a0a25c79315635f4bd7653a01f0f..8a28762d3faf10078f893a02e6a942e9d41774a6 100644 (file)
@@ -34,7 +34,7 @@
 #include <boost/filesystem.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread/mutex.hpp>
-#include <boost/enable_shared_from_this.hpp>
+
 
 namespace xmlpp {
        class Node;
@@ -62,23 +62,23 @@ public:
 /** @class Content
  *  @brief A piece of content represented by one or more files on disk.
  */
-class Content : public boost::enable_shared_from_this<Content>, public Signaller, public boost::noncopyable
+class Content : public std::enable_shared_from_this<Content>, public Signaller, public boost::noncopyable
 {
 public:
        explicit Content ();
        Content (dcpomatic::DCPTime);
        Content (boost::filesystem::path);
        Content (cxml::ConstNodePtr);
-       Content (std::vector<boost::shared_ptr<Content> >);
+       Content (std::vector<std::shared_ptr<Content> >);
        virtual ~Content () {}
 
        /** Examine the content to establish digest, frame rates and any other
         *  useful metadata.
         *  @param job Job to use to report progress, or 0.
         */
-       virtual void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job> job);
+       virtual void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job> job);
 
-       virtual void take_settings_from (boost::shared_ptr<const Content> c);
+       virtual void take_settings_from (std::shared_ptr<const Content> c);
 
        /** @return Quick one-line summary of the content, as will be presented in the
         *  film editor.
@@ -91,15 +91,15 @@ public:
        virtual std::string technical_summary () const;
 
        virtual void as_xml (xmlpp::Node *, bool with_paths) const;
-       virtual dcpomatic::DCPTime full_length (boost::shared_ptr<const Film>) const = 0;
+       virtual dcpomatic::DCPTime full_length (std::shared_ptr<const Film>) const = 0;
        virtual dcpomatic::DCPTime approximate_length () const = 0;
        virtual std::string identifier () const;
        /** @return points at which to split this content when
         *  REELTYPE_BY_VIDEO_CONTENT is in use.
         */
-       virtual std::list<dcpomatic::DCPTime> reel_split_points (boost::shared_ptr<const Film>) const;
+       virtual std::list<dcpomatic::DCPTime> reel_split_points (std::shared_ptr<const Film>) const;
 
-       boost::shared_ptr<Content> clone () const;
+       std::shared_ptr<Content> clone () const;
 
        void set_paths (std::vector<boost::filesystem::path> paths);
 
@@ -136,7 +136,7 @@ public:
                return _digest;
        }
 
-       void set_position (boost::shared_ptr<const Film> film, dcpomatic::DCPTime, bool force_emit = false);
+       void set_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime, bool force_emit = false);
 
        /** dcpomatic::DCPTime that this content starts; i.e. the time that the first
         *  bit of the content (trimmed or not) will happen.
@@ -161,11 +161,11 @@ public:
        }
 
        /** @return Time immediately after the last thing in this content */
-       dcpomatic::DCPTime end (boost::shared_ptr<const Film> film) const {
+       dcpomatic::DCPTime end (std::shared_ptr<const Film> film) const {
                return position() + length_after_trim(film);
        }
 
-       dcpomatic::DCPTime length_after_trim (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime length_after_trim (std::shared_ptr<const Film> film) const;
 
        boost::optional<double> video_frame_rate () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -175,30 +175,30 @@ public:
        void set_video_frame_rate (double r);
        void unset_video_frame_rate ();
 
-       double active_video_frame_rate (boost::shared_ptr<const Film> film) const;
+       double active_video_frame_rate (std::shared_ptr<const Film> film) const;
 
        void set_change_signals_frequent (bool f) {
                _change_signals_frequent = f;
        }
 
-       std::list<UserProperty> user_properties (boost::shared_ptr<const Film> film) const;
+       std::list<UserProperty> user_properties (std::shared_ptr<const Film> film) const;
 
        std::string calculate_digest () const;
 
        /* CHANGE_TYPE_PENDING and CHANGE_TYPE_CANCELLED may be emitted from any thread; CHANGE_TYPE_DONE always from GUI thread */
-       boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> Change;
+       boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> Change;
 
-       boost::shared_ptr<VideoContent> video;
-       boost::shared_ptr<AudioContent> audio;
-       std::list<boost::shared_ptr<TextContent> > text;
-       boost::shared_ptr<AtmosContent> atmos;
+       std::shared_ptr<VideoContent> video;
+       std::shared_ptr<AudioContent> audio;
+       std::list<std::shared_ptr<TextContent> > text;
+       std::shared_ptr<AtmosContent> atmos;
 
-       boost::shared_ptr<TextContent> only_text () const;
-       boost::shared_ptr<TextContent> text_of_original_type (TextType type) const;
+       std::shared_ptr<TextContent> only_text () const;
+       std::shared_ptr<TextContent> text_of_original_type (TextType type) const;
 
 protected:
 
-       virtual void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty> &) const;
+       virtual void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty> &) const;
 
        /** _mutex which should be used to protect accesses, as examine
         *  jobs can update content state in threads other than the main one.
index 57b7e404f5a66e88afdc30b3dc6bde3f8925ad50..891ca3b834d0a1fc697e8c94921f22833ff9a9f5 100644 (file)
@@ -24,7 +24,6 @@
 #include "atmos_metadata.h"
 #include "types.h"
 #include <dcp/atmos_asset_reader.h>
-#include <boost/shared_ptr.hpp>
 
 /** @class ContentAtmos
  *  @brief Some Atmos data that has come out of a decoder.
 class ContentAtmos
 {
 public:
-       ContentAtmos (boost::shared_ptr<const dcp::AtmosFrame> data_, Frame frame_, AtmosMetadata metadata_)
+       ContentAtmos (std::shared_ptr<const dcp::AtmosFrame> data_, Frame frame_, AtmosMetadata metadata_)
                : data (data_)
                , frame (frame_)
                , metadata (metadata_)
        {}
 
-       boost::shared_ptr<const dcp::AtmosFrame> data;
+       std::shared_ptr<const dcp::AtmosFrame> data;
        Frame frame;
        AtmosMetadata metadata;
 };
index 509e7e4a6c92f326536637238db75bebb2081f14..0d16799d715a8fd67fe2e770b304f969654a328b 100644 (file)
@@ -39,12 +39,12 @@ public:
                , frame (0)
        {}
 
-       ContentAudio (boost::shared_ptr<const AudioBuffers> a, Frame f)
+       ContentAudio (std::shared_ptr<const AudioBuffers> a, Frame f)
                : audio (a)
                , frame (f)
        {}
 
-       boost::shared_ptr<const AudioBuffers> audio;
+       std::shared_ptr<const AudioBuffers> audio;
        Frame frame;
 };
 
index 0e8b04eda21c48b9b22f975a2e7e4b126485a417..c4e389c7cd794c95b7ac23dd09470e01750027e1 100644 (file)
@@ -45,7 +45,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 /** Create a Content object from an XML node.
@@ -59,7 +59,7 @@ content_factory (cxml::ConstNodePtr node, int version, list<string>& notes)
 {
        string const type = node->string_child ("Type");
 
-       boost::shared_ptr<Content> content;
+       std::shared_ptr<Content> content;
 
        if (type == "FFmpeg") {
                /* SndfileContent is now handled by the FFmpeg code rather than by
index 2522ad01798c19f63b4fb52b6afc6f4d4733d582..ab76a29dc6367c9b6ee96d58fa2095bed8e8d90c 100644 (file)
  */
 
 #include <libcxml/cxml.h>
-#include <boost/shared_ptr.hpp>
 
 class Film;
 class Content;
 
-extern boost::shared_ptr<Content> content_factory (cxml::ConstNodePtr, int, std::list<std::string> &);
-extern std::list<boost::shared_ptr<Content> > content_factory (boost::filesystem::path);
+extern std::shared_ptr<Content> content_factory (cxml::ConstNodePtr, int, std::list<std::string> &);
+extern std::list<std::shared_ptr<Content> > content_factory (boost::filesystem::path);
index eb96b13710e210593ca47c8911225362d5bfb084..a81334270edc369fa24f5b4a449ca6e180d78d28 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "content.h"
 #include "change_signaller.h"
-#include <boost/weak_ptr.hpp>
 #include <boost/thread/mutex.hpp>
 
 class Content;
index 028fa27971382914fac3ed02a503fcc814e37535..d5a6336a507a25bb4e628e097182bb079dbf0932 100644 (file)
@@ -18,7 +18,9 @@
 
 */
 
-#include <boost/shared_ptr.hpp>
+
+#include <memory>
+
 
 class Content;
 
@@ -28,5 +30,5 @@ class Content;
 class ContentStore
 {
 public:
-       virtual boost::shared_ptr<Content> get (std::string digest) const = 0;
+       virtual std::shared_ptr<Content> get (std::string digest) const = 0;
 };
index 0c0df1ee63bdce15f3c5d9905af302c31a10c43d..c6d7d6ec2ec06bdee841365ebbaa89eb53527b41 100644 (file)
@@ -48,7 +48,7 @@ private:
 class ContentBitmapText : public ContentText
 {
 public:
-       ContentBitmapText (dcpomatic::ContentTime f, boost::shared_ptr<Image> im, dcpomatic::Rect<double> r)
+       ContentBitmapText (dcpomatic::ContentTime f, std::shared_ptr<Image> im, dcpomatic::Rect<double> r)
                : ContentText (f)
                , sub (im, r)
        {}
index 8b3d984df9f808db12448ad93e04fa7e1dafdb9d..ee169b6c556c93b93a7636f183314e56830ed17d 100644 (file)
@@ -37,14 +37,14 @@ public:
                , part (PART_WHOLE)
        {}
 
-       ContentVideo (boost::shared_ptr<const ImageProxy> i, Frame f, Eyes e, Part p)
+       ContentVideo (std::shared_ptr<const ImageProxy> i, Frame f, Eyes e, Part p)
                : image (i)
                , frame (f)
                , eyes (e)
                , part (p)
        {}
 
-       boost::shared_ptr<const ImageProxy> image;
+       std::shared_ptr<const ImageProxy> image;
        Frame frame;
        Eyes eyes;
        Part part;
index c33b0974baf536c59c78b1526c68d325a628a65d..9bd88a422a74d4c3a4a3653603e29df06c36f0c9 100644 (file)
 #include "audio_content.h"
 #include "ratio.h"
 #include "dcp_content_type.h"
-#include <boost/shared_ptr.hpp>
 #include <map>
 
 
 using std::map;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 void
index 38eb7fcc913b1ce129e91be742fbbc33e8382b38..1b5c058116ffa6bbe7d22fab32ed1530bb2ca7e8 100644 (file)
 
 */
 
-#include <boost/shared_ptr.hpp>
+
+#include <memory>
+
 
 class DCPContent;
 class Film;
 
-extern void copy_dcp_details_to_film (boost::shared_ptr<const DCPContent> dcp, boost::shared_ptr<Film> film);
+extern void copy_dcp_details_to_film (std::shared_ptr<const DCPContent> dcp, std::shared_ptr<Film> film);
index f78d3d3c511b5b8d6f830cefe11a5733635a538d..eafa126b6148538ab56018d074e6274b5fca51a8 100644 (file)
@@ -37,7 +37,7 @@
 using std::string;
 using std::cout;
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
 
index 27822a1d35761ab1a8828d9e2a19020517943109..247bf4aabc3f6addcffb7d821a483c467de273d9 100644 (file)
@@ -57,7 +57,7 @@ using std::vector;
 using std::cerr;
 using std::cout;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
 
index a16907ebe47360f2658724ce849e5583761ac99f..76c451a6f3df2078b77d3ed951421318592f0f18 100644 (file)
@@ -64,7 +64,7 @@ using std::cerr;
 using std::cout;
 using std::runtime_error;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
 
index ad5a886643211b251174318a7f9d721711c903c1..1fe5556484e6b7a505a447dd77cc4e8c5972cbf1 100644 (file)
@@ -59,7 +59,7 @@ using std::cerr;
 using std::cout;
 using std::runtime_error;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 static std::vector<pair<HANDLE, string> > locked_volumes;
index 2f56a4ee750040ed390e9b37f4dd2fcb5358803d..8baf489d1c2b71d353d69c167b405ef2e3883abb 100644 (file)
@@ -34,8 +34,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;
 
 
 /** Find all the CPLs in our directories, cross-add assets and return the CPLs */
index d449fdb39d8444e6cf0fc8d1e2b91bf1043d6ade..d72ce683333350215184206602cdaa8b3f667f57 100644 (file)
@@ -22,7 +22,6 @@
 #define DCPOMATIC_DCP_H
 
 #include <dcp/cpl.h>
-#include <boost/shared_ptr.hpp>
 #include <list>
 #include <iostream>
 
@@ -31,15 +30,15 @@ class DCPContent;
 class DCP
 {
 public:
-       std::list<boost::shared_ptr<dcp::CPL> > cpls () const;
+       std::list<std::shared_ptr<dcp::CPL> > cpls () const;
 
 protected:
-       explicit DCP (boost::shared_ptr<const DCPContent> content, bool tolerant)
+       explicit DCP (std::shared_ptr<const DCPContent> content, bool tolerant)
                : _dcp_content (content)
                , _tolerant (tolerant)
        {}
 
-       boost::shared_ptr<const DCPContent> _dcp_content;
+       std::shared_ptr<const DCPContent> _dcp_content;
 
 private:
        bool _tolerant;
index 3b90c9c4f2400bf8e17be6047a910ac5c92133f6..d4bd58e584099c9d937f5209e97639dbeb2a0f85 100644 (file)
@@ -53,11 +53,11 @@ using std::pair;
 using std::vector;
 using std::list;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_ptr;
 using boost::optional;
 using boost::function;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 473dbae36df5f16d7f3f4b0079a685bfc988be54..c235dd823c975df375042a30d8dd4f61c8df5503 100644 (file)
@@ -53,26 +53,26 @@ public:
        DCPContent (boost::filesystem::path p);
        DCPContent (cxml::ConstNodePtr, int version);
 
-       boost::shared_ptr<DCPContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<DCPContent> (Content::shared_from_this ());
+       std::shared_ptr<DCPContent> shared_from_this () {
+               return std::dynamic_pointer_cast<DCPContent> (Content::shared_from_this ());
        }
 
-       boost::shared_ptr<const DCPContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const DCPContent> (Content::shared_from_this ());
+       std::shared_ptr<const DCPContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const DCPContent> (Content::shared_from_this ());
        }
 
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
        std::string identifier () const;
-       void take_settings_from (boost::shared_ptr<const Content> c);
+       void take_settings_from (std::shared_ptr<const Content> c);
 
        void set_default_colour_conversion ();
-       std::list<dcpomatic::DCPTime> reel_split_points (boost::shared_ptr<const Film> film) const;
+       std::list<dcpomatic::DCPTime> reel_split_points (std::shared_ptr<const Film> film) const;
 
        std::vector<boost::filesystem::path> directories () const;
 
@@ -99,7 +99,7 @@ public:
                return _reference_video;
        }
 
-       bool can_reference_video (boost::shared_ptr<const Film> film, std::string &) const;
+       bool can_reference_video (std::shared_ptr<const Film> film, std::string &) const;
 
        void set_reference_audio (bool r);
 
@@ -108,7 +108,7 @@ public:
                return _reference_audio;
        }
 
-       bool can_reference_audio (boost::shared_ptr<const Film> film, std::string &) const;
+       bool can_reference_audio (std::shared_ptr<const Film> film, std::string &) const;
 
        void set_reference_text (TextType type, bool r);
 
@@ -120,7 +120,7 @@ public:
                return _reference_text[type];
        }
 
-       bool can_reference_text (boost::shared_ptr<const Film> film, TextType type, std::string &) const;
+       bool can_reference_text (std::shared_ptr<const Film> film, TextType type, std::string &) const;
 
        void set_cpl (std::string id);
 
@@ -169,14 +169,14 @@ public:
 private:
        friend struct reels_test5;
 
-       void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
+       void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
 
        void read_directory (boost::filesystem::path);
        void read_sub_directory (boost::filesystem::path);
-       std::list<dcpomatic::DCPTimePeriod> reels (boost::shared_ptr<const Film> film) const;
+       std::list<dcpomatic::DCPTimePeriod> reels (std::shared_ptr<const Film> film) const;
        bool can_reference (
-               boost::shared_ptr<const Film> film,
-               boost::function <bool (boost::shared_ptr<const Content>)>,
+               std::shared_ptr<const Film> film,
+               boost::function <bool (std::shared_ptr<const Content>)>,
                std::string overlapping,
                std::string& why_not
                ) const;
index 17710a3bd093a0127af3aec339d33cff6de0ffa6..aa8fed2b4019f64331c8d1fc215a8ac06d835c8c 100644 (file)
@@ -59,8 +59,8 @@ using std::cout;
 using std::map;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 
index 99bdb8bd4897491b5ea0feec40b13120d715423d..553f05aedc433610b4c41f189a728c7cc5f65fdf 100644 (file)
@@ -42,14 +42,14 @@ class DCPDecoder : public DCP, public Decoder
 {
 public:
        DCPDecoder (
-               boost::shared_ptr<const Film> film,
-               boost::shared_ptr<const DCPContent>,
+               std::shared_ptr<const Film> film,
+               std::shared_ptr<const DCPContent>,
                bool fast,
                bool tolerant,
-               boost::shared_ptr<DCPDecoder> old
+               std::shared_ptr<DCPDecoder> old
                );
 
-       std::list<boost::shared_ptr<dcp::Reel> > reels () const {
+       std::list<std::shared_ptr<dcp::Reel> > reels () const {
                return _reels;
        }
 
@@ -75,28 +75,28 @@ private:
        void pass_texts (dcpomatic::ContentTime next, dcp::Size size);
        void pass_texts (
                dcpomatic::ContentTime next,
-               boost::shared_ptr<dcp::SubtitleAsset> asset,
+               std::shared_ptr<dcp::SubtitleAsset> asset,
                bool reference,
                int64_t entry_point,
-               boost::shared_ptr<TextDecoder> decoder,
+               std::shared_ptr<TextDecoder> decoder,
                dcp::Size size
                );
-       std::string calculate_lazy_digest (boost::shared_ptr<const DCPContent>) const;
+       std::string calculate_lazy_digest (std::shared_ptr<const DCPContent>) const;
 
        /** Time of next thing to return from pass relative to the start of _reel */
        dcpomatic::ContentTime _next;
-       std::list<boost::shared_ptr<dcp::Reel> > _reels;
+       std::list<std::shared_ptr<dcp::Reel> > _reels;
 
-       std::list<boost::shared_ptr<dcp::Reel> >::iterator _reel;
+       std::list<std::shared_ptr<dcp::Reel> >::iterator _reel;
        /** Offset of _reel from the start of the content in frames */
        int64_t _offset;
        /** Reader for current mono picture asset, if applicable */
-       boost::shared_ptr<dcp::MonoPictureAssetReader> _mono_reader;
+       std::shared_ptr<dcp::MonoPictureAssetReader> _mono_reader;
        /** Reader for current stereo picture asset, if applicable */
-       boost::shared_ptr<dcp::StereoPictureAssetReader> _stereo_reader;
+       std::shared_ptr<dcp::StereoPictureAssetReader> _stereo_reader;
        /** Reader for current sound asset, if applicable */
-       boost::shared_ptr<dcp::SoundAssetReader> _sound_reader;
-       boost::shared_ptr<dcp::AtmosAssetReader> _atmos_reader;
+       std::shared_ptr<dcp::SoundAssetReader> _sound_reader;
+       std::shared_ptr<dcp::AtmosAssetReader> _atmos_reader;
        boost::optional<AtmosMetadata> _atmos_metadata;
 
        bool _decode_referenced;
index c530492cf2275e98aae571f7908ae57e91516d52..dfd8ed8d741bda0e75e75f777bf2002628c66ad0 100644 (file)
@@ -47,9 +47,9 @@ using std::string;
 using std::cout;
 using std::list;
 using std::vector;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index e5df30fb524ac9cb897883bdfe1addb610f65310..65782d968c2580c2bde0d2a7e4b6b4cca227dad2 100644 (file)
@@ -24,7 +24,6 @@
 #include "dcp_text_track.h"
 #include "encoder.h"
 #include <dcp/atmos_frame.h>
-#include <boost/weak_ptr.hpp>
 
 class Film;
 class J2KEncoder;
@@ -38,7 +37,7 @@ class AudioBuffers;
 class DCPEncoder : public Encoder
 {
 public:
-       DCPEncoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job);
+       DCPEncoder (std::shared_ptr<const Film> film, std::weak_ptr<Job> job);
        ~DCPEncoder ();
 
        void go ();
@@ -53,13 +52,13 @@ public:
 
 private:
 
-       void video (boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime);
-       void audio (boost::shared_ptr<AudioBuffers>, dcpomatic::DCPTime);
+       void video (std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime);
+       void audio (std::shared_ptr<AudioBuffers>, dcpomatic::DCPTime);
        void text (PlayerText, TextType, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod);
-       void atmos (boost::shared_ptr<const dcp::AtmosFrame>, dcpomatic::DCPTime, AtmosMetadata metadata);
+       void atmos (std::shared_ptr<const dcp::AtmosFrame>, dcpomatic::DCPTime, AtmosMetadata metadata);
 
-       boost::shared_ptr<Writer> _writer;
-       boost::shared_ptr<J2KEncoder> _j2k_encoder;
+       std::shared_ptr<Writer> _writer;
+       std::shared_ptr<J2KEncoder> _j2k_encoder;
        bool _finishing;
        bool _non_burnt_subtitles;
 
index 27eb74a5d5231e559cc5856ff78040d105e8c786..fc1fbc53a7163fe7f7decee339435d41f833506e 100644 (file)
@@ -53,8 +53,8 @@ using std::list;
 using std::cout;
 using std::runtime_error;
 using std::map;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
        : DCP (content, tolerant)
index 232d7f0d87ec2ceebade13de4422530af191c145..f577e2b3552c999a1f5f0b3e681fbafe4c785248 100644 (file)
@@ -34,7 +34,7 @@ class DCPContent;
 class DCPExaminer : public DCP, public VideoExaminer, public AudioExaminer
 {
 public:
-       explicit DCPExaminer (boost::shared_ptr<const DCPContent>, bool tolerant);
+       explicit DCPExaminer (std::shared_ptr<const DCPContent>, bool tolerant);
 
        bool has_video () const {
                return _has_video;
index f9aa7e0d9f103da6f38d54f5e35621c23c3b6731..6f579b2d3600aee9a05b039791220a748609409f 100644 (file)
@@ -28,7 +28,7 @@
 
 using std::string;
 using std::exception;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 shared_ptr<dcp::SubtitleAsset>
 DCPSubtitle::load (boost::filesystem::path file) const
index 66e7a3f25efc7ee85bf40d710f5f11e86efda9f0..9cd0685aadbddd01b834d2e10550feb69b6d41ab 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef DCPOMATIC_DCP_SUBTITLE_H
 #define DCPOMATIC_DCP_SUBTITLE_H
 
-#include <boost/shared_ptr.hpp>
 #include <boost/filesystem.hpp>
 
 namespace dcp {
@@ -31,7 +30,7 @@ namespace dcp {
 class DCPSubtitle
 {
 protected:
-       boost::shared_ptr<dcp::SubtitleAsset> load (boost::filesystem::path) const;
+       std::shared_ptr<dcp::SubtitleAsset> load (boost::filesystem::path) const;
 };
 
 #endif
index 43936314b5c41238ad17fafcb37d7ff4a8b8adc6..d58779ee2da0835cbc19c0e65259703ddf02a0ef 100644 (file)
@@ -33,8 +33,8 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using dcp::raw_convert;
 using namespace dcpomatic;
 
index 5ff4095469cbba0c70d7df749dff868363f78776..f4a767d210c6c587630c99132db208274c7fd122 100644 (file)
@@ -27,11 +27,11 @@ public:
        DCPSubtitleContent (boost::filesystem::path);
        DCPSubtitleContent (cxml::ConstNodePtr, int);
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
 
 private:
index 16a738a5135eedc5407e55f6185554faefc14d1a..5c14b78858f1cedb7f28e3529f5b7b20de2d6a2b 100644 (file)
@@ -29,8 +29,8 @@ using std::list;
 using std::map;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::bind;
 using namespace dcpomatic;
 
index b53b88dedab7806eaa12b6c8ba6dc6d20641dabe..31b8e6a8e557656e040ab4746a22855074b54869 100644 (file)
@@ -27,7 +27,7 @@ class DCPSubtitleContent;
 class DCPSubtitleDecoder : public DCPSubtitle, public Decoder
 {
 public:
-       DCPSubtitleDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const DCPSubtitleContent>);
+       DCPSubtitleDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const DCPSubtitleContent>);
 
        bool pass ();
        void seek (dcpomatic::ContentTime time, bool accurate);
@@ -35,10 +35,10 @@ public:
        std::vector<dcpomatic::FontData> fonts () const;
 
 private:
-       dcpomatic::ContentTimePeriod content_time_period (boost::shared_ptr<dcp::Subtitle> s) const;
+       dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr<dcp::Subtitle> s) const;
 
-       std::list<boost::shared_ptr<dcp::Subtitle> > _subtitles;
-       std::list<boost::shared_ptr<dcp::Subtitle> >::const_iterator _next;
+       std::list<std::shared_ptr<dcp::Subtitle> > _subtitles;
+       std::list<std::shared_ptr<dcp::Subtitle> >::const_iterator _next;
 
        std::vector<dcpomatic::FontData> _fonts;
 };
index ffeb23a466f78be64a0f95f28a9ddc9b69415ed7..ddad3d8e06ac2949cb04a36e8087cc4f32495a04 100644 (file)
@@ -58,7 +58,7 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::Size;
 using dcp::ArrayData;
 using dcp::raw_convert;
index aa11d7d3c62b4b1591efd3d0ec77d774e1f57355..5d8b9b720a3aef0da98223f287e3668755d8f8b9 100644 (file)
@@ -42,8 +42,8 @@ class PlayerVideo;
 class DCPVideo : public boost::noncopyable
 {
 public:
-       DCPVideo (boost::shared_ptr<const PlayerVideo>, int, int, int, Resolution);
-       DCPVideo (boost::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr);
+       DCPVideo (std::shared_ptr<const PlayerVideo>, int, int, int, Resolution);
+       DCPVideo (std::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr);
 
        dcp::ArrayData encode_locally ();
        dcp::ArrayData encode_remotely (EncodeServerDescription, int timeout = 30);
@@ -54,15 +54,15 @@ public:
 
        Eyes eyes () const;
 
-       bool same (boost::shared_ptr<const DCPVideo> other) const;
+       bool same (std::shared_ptr<const DCPVideo> other) const;
 
-       static boost::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz (boost::shared_ptr<const PlayerVideo> frame, dcp::NoteHandler note);
+       static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz (std::shared_ptr<const PlayerVideo> frame, dcp::NoteHandler note);
 
 private:
 
        void add_metadata (xmlpp::Element *) const;
 
-       boost::shared_ptr<const PlayerVideo> _frame;
+       std::shared_ptr<const PlayerVideo> _frame;
        int _index;                      ///< frame index within the DCP's intrinsic duration
        int _frames_per_second;          ///< Frames per second that we will use for the DCP
        int _j2k_bandwidth;              ///< J2K bandwidth to use
index 63b5ad375c24cfb8140df57522b9813fe1fb599e..a64dc907c7b69b24b8234b73d6905cbe9fb563b0 100644 (file)
@@ -22,4 +22,4 @@
 #include "null_log.h"
 
 /** The current log; set up by the front-ends when they have a Film to log into */
-boost::shared_ptr<Log> dcpomatic_log (new NullLog());
+std::shared_ptr<Log> dcpomatic_log (new NullLog());
index d5d230414751ad14d2d4057440d9b87ffd94ee8c..c557bb17d57bc2a2232ea0fb38eecde669430e43 100644 (file)
 
 #include "log.h"
 #include "compose.hpp"
-#include <boost/shared_ptr.hpp>
 
 /** The current log; set up by the front-ends when they have a Film to log into */
-extern boost::shared_ptr<Log> dcpomatic_log;
+extern std::shared_ptr<Log> dcpomatic_log;
 
 #define LOG_GENERAL(...)      dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_GENERAL);
 #define LOG_GENERAL_NC(...)   dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_GENERAL);
index 580c7d36b8927358f2bd577f0a21fa9a2070fd59..a92a294e6a05668dfa9ad10d8f982f85680a588d 100644 (file)
@@ -28,8 +28,8 @@
 
 #include "i18n.h"
 
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 
 /** @param timeout Timeout in seconds */
 Socket::Socket (int timeout)
index 1fa0b046f0c1c7e2490865bfaa41a99114f8dcfb..49a27858892153e860ae46e3f3f557909da6a917 100644 (file)
@@ -22,7 +22,6 @@
 #include <boost/asio.hpp>
 #include <boost/noncopyable.hpp>
 #include <boost/scoped_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 
 /** @class Socket
  *  @brief A class to wrap a boost::asio::ip::tcp::socket with some things
@@ -52,10 +51,10 @@ public:
        class ReadDigestScope
        {
        public:
-               ReadDigestScope (boost::shared_ptr<Socket> socket);
+               ReadDigestScope (std::shared_ptr<Socket> socket);
                bool check ();
        private:
-               boost::weak_ptr<Socket> _socket;
+               std::weak_ptr<Socket> _socket;
        };
 
        /** After one of these is created everything that is sent from the socket will be
@@ -65,10 +64,10 @@ public:
        class WriteDigestScope
        {
        public:
-               WriteDigestScope (boost::shared_ptr<Socket> socket);
+               WriteDigestScope (std::shared_ptr<Socket> socket);
                ~WriteDigestScope ();
        private:
-               boost::weak_ptr<Socket> _socket;
+               std::weak_ptr<Socket> _socket;
        };
 
 private:
index d51282b537dd1b97fc5f40df73c4b7f91a331d07..a53118061fe82bd53759135977716798fd686dd4 100644 (file)
@@ -27,8 +27,8 @@
 
 using std::cout;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using namespace dcpomatic;
 
 Decoder::Decoder (weak_ptr<const Film> film)
index 169d55553ee93754c9978afafba1430b5da81f29..da5be4af679ccbda8b7c2100e2af3e5ce52b82e6 100644 (file)
@@ -45,15 +45,15 @@ class DecoderPart;
 class Decoder : public boost::noncopyable, public WeakConstFilm
 {
 public:
-       Decoder (boost::weak_ptr<const Film> film);
+       Decoder (std::weak_ptr<const Film> film);
        virtual ~Decoder () {}
 
-       boost::shared_ptr<VideoDecoder> video;
-       boost::shared_ptr<AudioDecoder> audio;
-       std::list<boost::shared_ptr<TextDecoder> > text;
-       boost::shared_ptr<AtmosDecoder> atmos;
+       std::shared_ptr<VideoDecoder> video;
+       std::shared_ptr<AudioDecoder> audio;
+       std::list<std::shared_ptr<TextDecoder> > text;
+       std::shared_ptr<AtmosDecoder> atmos;
 
-       boost::shared_ptr<TextDecoder> only_text () const;
+       std::shared_ptr<TextDecoder> only_text () const;
 
        /** Do some decoding and perhaps emit video, audio or subtitle data.
         *  @return true if this decoder will emit no more data unless a seek() happens.
index 12e3f3ddd46fe7356b7a336ac3a0bc95e0575eb6..f68a443b5cf4014f5c47d50619d151fcfdc237a7 100644 (file)
@@ -36,8 +36,8 @@
 #include <boost/foreach.hpp>
 
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 template <class T>
 shared_ptr<T>
index 0cd90a5857ce7b0c9d3d1a179e9a6f3e6a7f074e..1a39f37e24ed06642f80398ffc7025e7dc34a958 100644 (file)
 
 class ImageDecoder;
 
-extern boost::shared_ptr<Decoder> decoder_factory (
-       boost::shared_ptr<const Film> film,
-       boost::shared_ptr<const Content> content,
+extern std::shared_ptr<Decoder> decoder_factory (
+       std::shared_ptr<const Film> film,
+       std::shared_ptr<const Content> content,
        bool fast,
        bool tolerant,
-       boost::shared_ptr<Decoder> old_decoder
+       std::shared_ptr<Decoder> old_decoder
        );
index 3e06204defb5a0e40e92ef8ea1da3ae725aeb912..2bab1603ec2d84d00d54782bcbc24c63f38e0b80 100644 (file)
@@ -21,7 +21,7 @@
 #include "decoder_part.h"
 #include "decoder.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 DecoderPart::DecoderPart (Decoder* parent)
        : _parent (parent)
index c8e13445a96c42761e3a3fb1f5f65b6c0de3738b..96225f3dd78e681b7213bccf8ba7296560f5a68f 100644 (file)
@@ -34,7 +34,7 @@ public:
        DecoderPart (Decoder* parent);
        virtual ~DecoderPart () {}
 
-       virtual boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const = 0;
+       virtual boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film> film) const = 0;
        virtual void seek () = 0;
 
        void set_ignore (bool i) {
index b9db0615239044885bad7d12c1a705c1261f4b63..a12d95a4c621566f5043ab8edfc80859f5ec475d 100644 (file)
@@ -27,7 +27,7 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::raw_convert;
 
 
index ecaccd0a0200ab2511ab82c0898d96d3873de7e2..7cf59a495e007a581c2b78bc1f17304f7d11a926 100644 (file)
@@ -54,9 +54,9 @@ public:
 
 KDMWithMetadataPtr
 kdm_for_dkdm_recipient (
-       boost::shared_ptr<const Film> film,
+       std::shared_ptr<const Film> film,
        boost::filesystem::path cpl,
-       boost::shared_ptr<DKDMRecipient> recipient,
+       std::shared_ptr<DKDMRecipient> recipient,
        boost::posix_time::ptime valid_from,
        boost::posix_time::ptime valid_to
        );
index 23539bd94a4912ae24c5b62a8e6e2bd740ab6506..66f67114dd0f4347f855dee4a62fdd2dd4bbbcec 100644 (file)
@@ -29,8 +29,8 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 shared_ptr<DKDMBase>
 DKDMBase::read (cxml::ConstNodePtr node)
index 09e9d25c428c3808869fc6b20429edcc9fa73876..261cdc76751e112b511b49e8b390d8cb21aaa858 100644 (file)
@@ -20,7 +20,8 @@
 
 #include <dcp/encrypted_kdm.h>
 #include <libcxml/cxml.h>
-#include <boost/enable_shared_from_this.hpp>
+#include <memory>
+
 
 namespace xmlpp {
        class Element;
@@ -28,25 +29,25 @@ namespace xmlpp {
 
 class DKDMGroup;
 
-class DKDMBase : public boost::enable_shared_from_this<DKDMBase>
+class DKDMBase : public std::enable_shared_from_this<DKDMBase>
 {
 public:
        virtual ~DKDMBase () {}
        virtual std::string name () const = 0;
        virtual void as_xml (xmlpp::Element *) const = 0;
 
-       static boost::shared_ptr<DKDMBase> read (cxml::ConstNodePtr node);
+       static std::shared_ptr<DKDMBase> read (cxml::ConstNodePtr node);
 
-       boost::shared_ptr<DKDMGroup> parent () const {
+       std::shared_ptr<DKDMGroup> parent () const {
                return _parent;
        }
 
-       void set_parent (boost::shared_ptr<DKDMGroup> parent) {
+       void set_parent (std::shared_ptr<DKDMGroup> parent) {
                _parent = parent;
        }
 
 private:
-       boost::shared_ptr<DKDMGroup> _parent;
+       std::shared_ptr<DKDMGroup> _parent;
 };
 
 class DKDM : public DKDMBase
@@ -80,14 +81,14 @@ public:
 
        void as_xml (xmlpp::Element *) const;
 
-       std::list<boost::shared_ptr<DKDMBase> > children () const {
+       std::list<std::shared_ptr<DKDMBase> > children () const {
                return _children;
        }
 
-       void add (boost::shared_ptr<DKDMBase> child, boost::shared_ptr<DKDM> previous = boost::shared_ptr<DKDM> ());
-        void remove (boost::shared_ptr<DKDMBase> child);
+       void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM> ());
+        void remove (std::shared_ptr<DKDMBase> child);
 
 private:
        std::string _name;
-       std::list<boost::shared_ptr<DKDMBase> > _children;
+       std::list<std::shared_ptr<DKDMBase> > _children;
 };
index 6fe537eb1ce759d8a1f43ee44f1a651be9051058..b7cae70798437526a51d05e4d02903f6f7a07345 100644 (file)
@@ -34,7 +34,7 @@ using std::min;
 using std::list;
 using std::cout;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::ArrayData;
 
 Emailer::Emailer (string from, list<string> to, string subject, string body)
index c145c231bc02c1cef932282602aa7f8e0b27ce5b..00baaeb141e86a7d4a12ae7abb5181ed583f055b 100644 (file)
@@ -31,8 +31,8 @@
 
 using std::cout;
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::function;
 using namespace dcpomatic;
 
index 2368c4491f10fbd401c415b4dde9896151485cae..2a975562a4b2a8a30490e1d1f89fa9f3762bffd3 100644 (file)
@@ -35,7 +35,7 @@ class Empty
 {
 public:
        Empty () {}
-       Empty (boost::shared_ptr<const Film> film, boost::shared_ptr<const Playlist> playlist, boost::function<bool (boost::shared_ptr<const Content>)> part, dcpomatic::DCPTime length);
+       Empty (std::shared_ptr<const Film> film, std::shared_ptr<const Playlist> playlist, boost::function<bool (std::shared_ptr<const Content>)> part, dcpomatic::DCPTime length);
 
        dcpomatic::DCPTime position () const {
                return _position;
index 9e096fdfac037f852fc820bbd3c2414c8ca325c8..a14578a6bd7774fbab8e7b365e9b3866e2bf4818 100644 (file)
@@ -60,7 +60,7 @@ using std::list;
 using std::cout;
 using std::cerr;
 using std::fixed;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::thread;
 using boost::bind;
 using boost::scoped_array;
index a43cea7efea8228a02a06d063766bd861948477f..d313a851d3f942eb3bbe6a372b1a4075dece47a2 100644 (file)
@@ -48,14 +48,14 @@ public:
        void run ();
 
 private:
-       void handle (boost::shared_ptr<Socket>);
+       void handle (std::shared_ptr<Socket>);
        void worker_thread ();
-       int process (boost::shared_ptr<Socket> socket, struct timeval &, struct timeval &);
+       int process (std::shared_ptr<Socket> socket, struct timeval &, struct timeval &);
        void broadcast_thread ();
        void broadcast_received ();
 
        boost::thread_group _worker_threads;
-       std::list<boost::shared_ptr<Socket> > _queue;
+       std::list<std::shared_ptr<Socket> > _queue;
        boost::condition _full_condition;
        boost::condition _empty_condition;
        bool _verbose;
index c823d868f03f90560430e227ccbf470757192d89..5a5a2bfb74cd38a6bf3329f362c7b9c43dbee215 100644 (file)
@@ -37,9 +37,9 @@ using std::string;
 using std::list;
 using std::vector;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_array;
-using boost::weak_ptr;
+using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 78b72fa9cc079e42706382bf58497ac193aa4724..a58c75382e35fcf0f30b6296b1b141091ad2d169 100644 (file)
@@ -64,7 +64,7 @@ private:
 
        boost::optional<std::list<EncodeServerDescription>::iterator> server_found (std::string);
        void start_accept ();
-       void handle_accept (boost::system::error_code ec, boost::shared_ptr<Socket> socket);
+       void handle_accept (boost::system::error_code ec, std::shared_ptr<Socket> socket);
 
        void config_changed (Config::Property what);
 
@@ -79,7 +79,7 @@ private:
        mutable boost::mutex _servers_mutex;
 
        boost::asio::io_service _listen_io_service;
-       boost::shared_ptr<boost::asio::ip::tcp::acceptor> _listen_acceptor;
+       std::shared_ptr<boost::asio::ip::tcp::acceptor> _listen_acceptor;
        bool _stop;
 
        boost::condition _search_condition;
index 0a29989b175045fcc6eaeab46266ee55fb358ad7..fd826deb6666320ee33be0d0f6591cef9b0b5b10 100644 (file)
@@ -31,8 +31,8 @@
 
 #include "i18n.h"
 
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 
 /** Construct an encoder.
  *  @param film Film that we are encoding.
index 792029a9164f0ea4ce30054af0496501e113ea49..78c1f99088b46aae6506c561912647938143ed01 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "types.h"
 #include "player_text.h"
-#include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class Film;
@@ -37,7 +36,7 @@ class AudioBuffers;
 class Encoder : public boost::noncopyable
 {
 public:
-       Encoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job);
+       Encoder (std::shared_ptr<const Film> film, std::weak_ptr<Job> job);
        virtual ~Encoder () {}
 
        virtual void go () = 0;
@@ -52,9 +51,9 @@ public:
        virtual bool finishing () const = 0;
 
 protected:
-       boost::shared_ptr<const Film> _film;
-       boost::weak_ptr<Job> _job;
-       boost::shared_ptr<Player> _player;
+       std::shared_ptr<const Film> _film;
+       std::weak_ptr<Job> _job;
+       std::shared_ptr<Player> _player;
 };
 
 #endif
index 31279acfbf539b1be227542d9194af3ebd4a0ab2..fd44100cd490adcf67d6f9687f0a40a2d39d4d5d 100644 (file)
@@ -38,7 +38,7 @@ extern "C" {
 using std::string;
 using std::list;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param v Version as used by FFmpeg.
  *  @return A string representation of v.
index 3be38863d46e4204bf364da3989ee4b1d7e0fe19..fb943915517ca215e0566ce86c804276059ea88d 100644 (file)
@@ -29,7 +29,7 @@
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 ExamineContentJob::ExamineContentJob (shared_ptr<const Film> film, shared_ptr<Content> c)
        : Job (film)
index 0105035ffe1c175521680f1fc059869836e5bdc2..00d27a342391f4f9681cb60358898442cc54afc1 100644 (file)
 */
 
 #include "job.h"
-#include <boost/shared_ptr.hpp>
 
 class Content;
 
 class ExamineContentJob : public Job
 {
 public:
-       ExamineContentJob (boost::shared_ptr<const Film>, boost::shared_ptr<Content>);
+       ExamineContentJob (std::shared_ptr<const Film>, std::shared_ptr<Content>);
        ~ExamineContentJob ();
 
        std::string name () const;
        std::string json_name () const;
        void run ();
 
-       boost::shared_ptr<Content> content () const {
+       std::shared_ptr<Content> content () const {
                return _content;
        }
 
 private:
-       boost::shared_ptr<Content> _content;
+       std::shared_ptr<Content> _content;
 };
index b2bba11cd05707acf1c32647e48dc2754bcd3d2a..90589eb2843c8794fc2b4c46daca4b53b41f234a 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 ExamineFFmpegSubtitlesJob::ExamineFFmpegSubtitlesJob (shared_ptr<const Film> film, shared_ptr<FFmpegContent> c)
        : Job (film)
index 0a0101193c0067b34c9d25af15ae4c990962d37d..c9c0cabf4dbd9c316a90fb1713d4ab12fafaf385 100644 (file)
 
 #include "job.h"
 #include "ffmpeg.h"
-#include <boost/shared_ptr.hpp>
 
 class FFmpegContent;
 
 class ExamineFFmpegSubtitlesJob : public Job, public FFmpeg
 {
 public:
-       ExamineFFmpegSubtitlesJob (boost::shared_ptr<const Film>, boost::shared_ptr<FFmpegContent>);
+       ExamineFFmpegSubtitlesJob (std::shared_ptr<const Film>, std::shared_ptr<FFmpegContent>);
        ~ExamineFFmpegSubtitlesJob ();
 
        std::string name () const;
@@ -35,5 +34,5 @@ public:
        void run ();
 
 private:
-       boost::shared_ptr<FFmpegContent> _content;
+       std::shared_ptr<FFmpegContent> _content;
 };
index f9c1ef0630906a0803dc641d40fa0aa4cb462513..11a332bdb80c300b5e91478899aa00a9fdb15bf5 100644 (file)
@@ -46,14 +46,14 @@ using std::string;
 using std::cout;
 using std::cerr;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
 using namespace dcpomatic;
 
 boost::mutex FFmpeg::_mutex;
 
-FFmpeg::FFmpeg (boost::shared_ptr<const FFmpegContent> c)
+FFmpeg::FFmpeg (std::shared_ptr<const FFmpegContent> c)
        : _ffmpeg_content (c)
        , _avio_buffer (0)
        , _avio_buffer_size (4096)
index e6399c076655742f4438bb87676dad87f8e06781..a9823007bd290928841ac05b0f868cd029976ae2 100644 (file)
@@ -29,7 +29,6 @@ extern "C" {
 #include <libavcodec/avcodec.h>
 }
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/thread/mutex.hpp>
 
 struct AVFormatContext;
@@ -43,10 +42,10 @@ class Log;
 class FFmpeg
 {
 public:
-       explicit FFmpeg (boost::shared_ptr<const FFmpegContent>);
+       explicit FFmpeg (std::shared_ptr<const FFmpegContent>);
        virtual ~FFmpeg ();
 
-       boost::shared_ptr<const FFmpegContent> ffmpeg_content () const {
+       std::shared_ptr<const FFmpegContent> ffmpeg_content () const {
                return _ffmpeg_content;
        }
 
@@ -57,12 +56,12 @@ protected:
        AVCodecContext* video_codec_context () const;
        AVCodecContext* subtitle_codec_context () const;
        dcpomatic::ContentTime pts_offset (
-               std::vector<boost::shared_ptr<FFmpegAudioStream> > audio_streams, boost::optional<dcpomatic::ContentTime> first_video, double video_frame_rate
+               std::vector<std::shared_ptr<FFmpegAudioStream> > audio_streams, boost::optional<dcpomatic::ContentTime> first_video, double video_frame_rate
                ) const;
 
        static FFmpegSubtitlePeriod subtitle_period (AVSubtitle const & sub);
 
-       boost::shared_ptr<const FFmpegContent> _ffmpeg_content;
+       std::shared_ptr<const FFmpegContent> _ffmpeg_content;
 
        uint8_t* _avio_buffer;
        int _avio_buffer_size;
@@ -87,7 +86,7 @@ private:
        void setup_decoders ();
 
        static void ffmpeg_log_callback (void* ptr, int level, const char* fmt, va_list vl);
-       static boost::weak_ptr<Log> _ffmpeg_log;
+       static std::weak_ptr<Log> _ffmpeg_log;
 };
 
 #endif
index ac62ac7f44870e6b979ced49e8bfa6f82e69cc16..6f3aceff8609da3cea061be3858edcd60ac9a3b2 100644 (file)
@@ -53,8 +53,8 @@ using std::cout;
 using std::pair;
 using std::make_pair;
 using std::max;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using dcp::raw_convert;
 using namespace dcpomatic;
index f933e4195203ef4b5b0d517eb2ffe0be328d0e7b..fccc7ad9973f10a5afe4f505e8be1039e99dff36 100644 (file)
@@ -49,22 +49,22 @@ class FFmpegContent : public Content
 public:
        FFmpegContent (boost::filesystem::path);
        FFmpegContent (cxml::ConstNodePtr, int version, std::list<std::string> &);
-       FFmpegContent (std::vector<boost::shared_ptr<Content> >);
+       FFmpegContent (std::vector<std::shared_ptr<Content> >);
 
-       boost::shared_ptr<FFmpegContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<FFmpegContent> (Content::shared_from_this ());
+       std::shared_ptr<FFmpegContent> shared_from_this () {
+               return std::dynamic_pointer_cast<FFmpegContent> (Content::shared_from_this ());
        }
 
-       boost::shared_ptr<const FFmpegContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const FFmpegContent> (Content::shared_from_this ());
+       std::shared_ptr<const FFmpegContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const FFmpegContent> (Content::shared_from_this ());
        }
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
-       void take_settings_from (boost::shared_ptr<const Content> c);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
+       void take_settings_from (std::shared_ptr<const Content> c);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
 
        std::string identifier () const;
@@ -73,24 +73,24 @@ public:
 
        void set_filters (std::vector<Filter const *> const &);
 
-       std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
+       std::vector<std::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _subtitle_streams;
        }
 
-       boost::shared_ptr<FFmpegSubtitleStream> subtitle_stream () const {
+       std::shared_ptr<FFmpegSubtitleStream> subtitle_stream () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _subtitle_stream;
        }
 
-       std::vector<boost::shared_ptr<FFmpegAudioStream> > ffmpeg_audio_streams () const;
+       std::vector<std::shared_ptr<FFmpegAudioStream> > ffmpeg_audio_streams () const;
 
        std::vector<Filter const *> filters () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _filters;
        }
 
-       void set_subtitle_stream (boost::shared_ptr<FFmpegSubtitleStream>);
+       void set_subtitle_stream (std::shared_ptr<FFmpegSubtitleStream>);
 
        boost::optional<dcpomatic::ContentTime> first_video () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -100,13 +100,13 @@ public:
        void signal_subtitle_stream_changed ();
 
 private:
-       void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty> &) const;
+       void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty> &) const;
 
        friend struct ffmpeg_pts_offset_test;
        friend struct audio_sampling_rate_test;
 
-       std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
-       boost::shared_ptr<FFmpegSubtitleStream> _subtitle_stream;
+       std::vector<std::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
+       std::shared_ptr<FFmpegSubtitleStream> _subtitle_stream;
        boost::optional<dcpomatic::ContentTime> _first_video;
        /** Video filters that should be used when generating DCPs */
        std::vector<Filter const *> _filters;
index 0d653906116a1ada85573e50e5eac357593d6be8..ae4ab237f344ce8c8fd39613d0589b21475dbec6 100644 (file)
@@ -68,11 +68,11 @@ using std::min;
 using std::pair;
 using std::max;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::is_any_of;
 using boost::split;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using dcp::Size;
 using namespace dcpomatic;
 
index 65f36a00461b9115ca67fea8e7ee60c60a944ef8..ca42e013e886c2cc08c94ed2edb63d2aae6c831a 100644 (file)
@@ -28,7 +28,6 @@
 extern "C" {
 #include <libavcodec/avcodec.h>
 }
-#include <boost/shared_ptr.hpp>
 #include <boost/thread/mutex.hpp>
 #include <stdint.h>
 
@@ -45,7 +44,7 @@ struct ffmpeg_pts_offset_test;
 class FFmpegDecoder : public FFmpeg, public Decoder
 {
 public:
-       FFmpegDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const FFmpegContent>, bool fast);
+       FFmpegDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const FFmpegContent>, bool fast);
 
        bool pass ();
        void seek (dcpomatic::ContentTime time, bool);
@@ -55,8 +54,8 @@ private:
 
        void flush ();
 
-       AVSampleFormat audio_sample_format (boost::shared_ptr<FFmpegAudioStream> stream) const;
-       int bytes_per_audio_sample (boost::shared_ptr<FFmpegAudioStream> stream) const;
+       AVSampleFormat audio_sample_format (std::shared_ptr<FFmpegAudioStream> stream) const;
+       int bytes_per_audio_sample (std::shared_ptr<FFmpegAudioStream> stream) const;
 
        bool decode_video_packet ();
        void decode_audio_packet ();
@@ -66,9 +65,9 @@ private:
        void decode_ass_subtitle (std::string ass, dcpomatic::ContentTime from);
 
        void maybe_add_subtitle ();
-       boost::shared_ptr<AudioBuffers> deinterleave_audio (boost::shared_ptr<FFmpegAudioStream> stream) const;
+       std::shared_ptr<AudioBuffers> deinterleave_audio (std::shared_ptr<FFmpegAudioStream> stream) const;
 
-       std::list<boost::shared_ptr<VideoFilterGraph> > _filter_graphs;
+       std::list<std::shared_ptr<VideoFilterGraph> > _filter_graphs;
        boost::mutex _filter_graphs_mutex;
 
        dcpomatic::ContentTime _pts_offset;
@@ -76,7 +75,7 @@ private:
        /** true if we have a subtitle which has not had emit_stop called for it yet */
        bool _have_current_subtitle;
 
-       boost::shared_ptr<Image> _black_image;
+       std::shared_ptr<Image> _black_image;
 
        std::vector<boost::optional<dcpomatic::ContentTime> > _next_time;
 };
index 443e169395425a4e7c3773979c94087501762f84..4e1f0bcb59ca5f57115d8de3bdf80ae8996d06b3 100644 (file)
@@ -38,9 +38,9 @@ using std::cout;
 using std::pair;
 using std::list;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
-using boost::weak_ptr;
+using std::weak_ptr;
 using boost::optional;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
@@ -279,7 +279,7 @@ FFmpegEncoder::FileEncoderSet::get (Eyes eyes) const
                }
        }
 
-       map<Eyes, boost::shared_ptr<FFmpegFileEncoder> >::const_iterator i = _encoders.find (eyes);
+       map<Eyes, std::shared_ptr<FFmpegFileEncoder> >::const_iterator i = _encoders.find (eyes);
        DCPOMATIC_ASSERT (i != _encoders.end());
        return i->second;
 }
@@ -287,7 +287,7 @@ FFmpegEncoder::FileEncoderSet::get (Eyes eyes) const
 void
 FFmpegEncoder::FileEncoderSet::flush ()
 {
-       for (map<Eyes, boost::shared_ptr<FFmpegFileEncoder> >::iterator i = _encoders.begin(); i != _encoders.end(); ++i) {
+       for (map<Eyes, std::shared_ptr<FFmpegFileEncoder> >::iterator i = _encoders.begin(); i != _encoders.end(); ++i) {
                i->second->flush ();
        }
 }
@@ -295,7 +295,7 @@ FFmpegEncoder::FileEncoderSet::flush ()
 void
 FFmpegEncoder::FileEncoderSet::audio (shared_ptr<AudioBuffers> a)
 {
-       for (map<Eyes, boost::shared_ptr<FFmpegFileEncoder> >::iterator i = _encoders.begin(); i != _encoders.end(); ++i) {
+       for (map<Eyes, std::shared_ptr<FFmpegFileEncoder> >::iterator i = _encoders.begin(); i != _encoders.end(); ++i) {
                i->second->audio (a);
        }
 }
index c71f8fa63348a0cabda4480f79db1c1d044836d8..710364b013840779d0fb80fdd204ca7d57960e75 100644 (file)
@@ -32,8 +32,8 @@ class FFmpegEncoder : public Encoder
 {
 public:
        FFmpegEncoder (
-               boost::shared_ptr<const Film> film,
-               boost::weak_ptr<Job> job,
+               std::shared_ptr<const Film> film,
+               std::weak_ptr<Job> job,
                boost::filesystem::path output,
                ExportFormat format,
                bool mixdown_to_stereo,
@@ -68,12 +68,12 @@ private:
                        std::string extension
                        );
 
-               boost::shared_ptr<FFmpegFileEncoder> get (Eyes eyes) const;
+               std::shared_ptr<FFmpegFileEncoder> get (Eyes eyes) const;
                void flush ();
-               void audio (boost::shared_ptr<AudioBuffers>);
+               void audio (std::shared_ptr<AudioBuffers>);
 
        private:
-               std::map<Eyes, boost::shared_ptr<FFmpegFileEncoder> > _encoders;
+               std::map<Eyes, std::shared_ptr<FFmpegFileEncoder> > _encoders;
        };
 
        int _output_audio_channels;
@@ -89,7 +89,7 @@ private:
        bool _audio_stream_per_channel;
        int _x264_crf;
 
-       boost::shared_ptr<Butler> _butler;
+       std::shared_ptr<Butler> _butler;
 };
 
 #endif
index bfd7e77227bbad5d73d93e523fbcb02c558a279d..b75d6c5149ced496e4cb1eb4dd60b17d3aa9df67 100644 (file)
@@ -45,7 +45,7 @@ using std::string;
 using std::cout;
 using std::max;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 3852f51a5fca2d83c87f6286050b8fe2d7537d8c..394e514093e974e6fdc9b04d1c4748f741a7b2d4 100644 (file)
@@ -31,7 +31,7 @@ class Job;
 class FFmpegExaminer : public FFmpeg, public VideoExaminer
 {
 public:
-       FFmpegExaminer (boost::shared_ptr<const FFmpegContent>, boost::shared_ptr<Job> job = boost::shared_ptr<Job> ());
+       FFmpegExaminer (std::shared_ptr<const FFmpegContent>, std::shared_ptr<Job> job = std::shared_ptr<Job> ());
 
        bool has_video () const;
 
@@ -41,11 +41,11 @@ public:
        boost::optional<double> sample_aspect_ratio () const;
        bool yuv () const;
 
-       std::vector<boost::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
+       std::vector<std::shared_ptr<FFmpegSubtitleStream> > subtitle_streams () const {
                return _subtitle_streams;
        }
 
-       std::vector<boost::shared_ptr<FFmpegAudioStream> > audio_streams () const {
+       std::vector<std::shared_ptr<FFmpegAudioStream> > audio_streams () const {
                return _audio_streams;
        }
 
@@ -83,14 +83,14 @@ public:
 
 private:
        void video_packet (AVCodecContext *, std::string& temporal_reference);
-       void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>);
+       void audio_packet (AVCodecContext *, std::shared_ptr<FFmpegAudioStream>);
 
        std::string stream_name (AVStream* s) const;
        std::string subtitle_stream_name (AVStream* s) const;
        boost::optional<dcpomatic::ContentTime> frame_time (AVStream* s) const;
 
-       std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
-       std::vector<boost::shared_ptr<FFmpegAudioStream> > _audio_streams;
+       std::vector<std::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
+       std::vector<std::shared_ptr<FFmpegAudioStream> > _audio_streams;
        boost::optional<dcpomatic::ContentTime> _first_video;
        /** Video length, either obtained from the header or derived by running
         *  through the whole file.
@@ -115,6 +115,6 @@ private:
                dcpomatic::ContentTime time;
        };
 
-       typedef std::map<boost::shared_ptr<FFmpegSubtitleStream>, boost::optional<SubtitleStart> > LastSubtitleMap;
+       typedef std::map<std::shared_ptr<FFmpegSubtitleStream>, boost::optional<SubtitleStart> > LastSubtitleMap;
        LastSubtitleMap _last_subtitle_start;
 };
index e527b18205871c5fa816832bd040476724e7c7e1..99637564abd557d523153c9385f04da374ad95bf 100644 (file)
@@ -35,9 +35,9 @@ using std::string;
 using std::runtime_error;
 using std::cout;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
-using boost::weak_ptr;
+using std::weak_ptr;
 using boost::optional;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
index 08fc4778b4d6bb7fe2f45f3e99a5104b91b1fef3..d644a1939bb8a039423df2ddbcd67cae0f8aef11 100644 (file)
@@ -51,8 +51,8 @@ public:
 
        ~FFmpegFileEncoder ();
 
-       void video (boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime);
-       void audio (boost::shared_ptr<AudioBuffers>);
+       void video (std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime);
+       void audio (std::shared_ptr<AudioBuffers>);
        void subtitle (PlayerText, dcpomatic::DCPTimePeriod);
 
        void flush ();
@@ -70,7 +70,7 @@ private:
 
        AVCodec* _video_codec;
        AVCodecContext* _video_codec_context;
-       std::vector<boost::shared_ptr<ExportAudioStream> > _audio_streams;
+       std::vector<std::shared_ptr<ExportAudioStream> > _audio_streams;
        bool _audio_stream_per_channel;
        AVFormatContext* _format_context;
        AVStream* _video_stream;
@@ -88,12 +88,12 @@ private:
 
        int64_t _audio_frames;
 
-       boost::shared_ptr<AudioBuffers> _pending_audio;
+       std::shared_ptr<AudioBuffers> _pending_audio;
 
        /** Store of shared_ptr<Image> to keep them alive whilst raw pointers into
            their data have been passed to FFmpeg.
        */
-       std::map<uint8_t*, boost::shared_ptr<const Image> > _pending_images;
+       std::map<uint8_t*, std::shared_ptr<const Image> > _pending_images;
        boost::mutex _pending_images_mutex;
 
        static int _video_stream_index;
index c978fc3834f95f8e63c691876315744ace4c5746..5b2280cfdfbf5b500261b8e3e34834c2038f8313 100644 (file)
@@ -44,9 +44,9 @@ using std::cout;
 using std::pair;
 using std::min;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using dcp::raw_convert;
 
 FFmpegImageProxy::FFmpegImageProxy (boost::filesystem::path path, VideoRange video_range)
index 4fca899f49626c92223691e010f97df221a2bb37..92689abe89245df278c97cb1b463023d84e681b1 100644 (file)
@@ -29,15 +29,15 @@ class FFmpegImageProxy : public ImageProxy
 public:
        explicit FFmpegImageProxy (boost::filesystem::path, VideoRange video_range);
        explicit FFmpegImageProxy (dcp::ArrayData, VideoRange video_range);
-       FFmpegImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+       FFmpegImageProxy (std::shared_ptr<cxml::Node> xml, std::shared_ptr<Socket> socket);
 
        Result image (
                boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
                ) const;
 
        void add_metadata (xmlpp::Node *) const;
-       void write_to_socket (boost::shared_ptr<Socket>) const;
-       bool same (boost::shared_ptr<const ImageProxy> other) const;
+       void write_to_socket (std::shared_ptr<Socket>) const;
+       bool same (std::shared_ptr<const ImageProxy> other) const;
        size_t memory_used () const;
 
        int avio_read (uint8_t* buffer, int const amount);
@@ -51,6 +51,6 @@ private:
            failed-decode errors can give more detail.
        */
        boost::optional<boost::filesystem::path> _path;
-       mutable boost::shared_ptr<Image> _image;
+       mutable std::shared_ptr<Image> _image;
        mutable boost::mutex _mutex;
 };
index b9aa84c3d9ff2aa957f84f01714fb1cbc1def2f9..481624c2a865136f3cc3aac83b6dc64663efe661 100644 (file)
@@ -28,7 +28,7 @@
 using std::cout;
 using std::string;
 using std::max;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param file Filename to write log to */
 FileLog::FileLog (boost::filesystem::path file)
index 613dd0939df990c1e0acc1f699cd4faeb15a9ea6..64e6a25051539b4efb4d1dcb38d2571be04b7446 100644 (file)
@@ -29,7 +29,7 @@ public:
        std::string head_and_tail (int amount = 1024) const;
 
 private:
-       void do_log (boost::shared_ptr<const LogEntry> entry);
+       void do_log (std::shared_ptr<const LogEntry> entry);
 
        /** filename to write to */
        boost::filesystem::path _file;
index 5b8acbae9bb17868fa0baa64d40b2f504f085749..68e5c1c1fc76657ea7d2b9d99e90ab6316969c1a 100644 (file)
@@ -97,9 +97,9 @@ using std::back_inserter;
 using std::map;
 using std::exception;
 using std::find;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::is_any_of;
 #if BOOST_VERSION >= 106100
index 4c71c9e1618efabdf9b7ce95f850d551cb1306e7..d794486897d9c8029493b6452912ecf2bc387d01 100644 (file)
@@ -36,7 +36,6 @@
 #include <dcp/key.h>
 #include <dcp/encrypted_kdm.h>
 #include <boost/signals2.hpp>
-#include <boost/enable_shared_from_this.hpp>
 #include <boost/thread.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/thread/mutex.hpp>
@@ -95,19 +94,19 @@ private:
  *
  *  The content of a Film is held in a Playlist (created and managed by the Film).
  */
-class Film : public boost::enable_shared_from_this<Film>, public Signaller, public boost::noncopyable
+class Film : public std::enable_shared_from_this<Film>, public Signaller, public boost::noncopyable
 {
 public:
        explicit Film (boost::optional<boost::filesystem::path> dir);
        ~Film ();
 
-       boost::shared_ptr<InfoFileHandle> info_file_handle (dcpomatic::DCPTimePeriod period, bool read) const;
+       std::shared_ptr<InfoFileHandle> info_file_handle (dcpomatic::DCPTimePeriod period, bool read) const;
        boost::filesystem::path j2c_path (int, Frame, Eyes, bool) const;
        boost::filesystem::path internal_video_asset_dir () const;
        boost::filesystem::path internal_video_asset_filename (dcpomatic::DCPTimePeriod p) const;
 
-       boost::filesystem::path audio_analysis_path (boost::shared_ptr<const Playlist>) const;
-       boost::filesystem::path subtitle_analysis_path (boost::shared_ptr<const Content>) const;
+       boost::filesystem::path audio_analysis_path (std::shared_ptr<const Playlist>) const;
+       boost::filesystem::path subtitle_analysis_path (std::shared_ptr<const Content>) const;
 
        void send_dcp_to_tms ();
        void make_dcp (bool gui = false, bool check = true);
@@ -115,7 +114,7 @@ public:
        /** @return Logger.
         *  It is safe to call this from any thread.
         */
-       boost::shared_ptr<Log> log () const {
+       std::shared_ptr<Log> log () const {
                return _log;
        }
 
@@ -127,9 +126,9 @@ public:
        void write_metadata () const;
        void write_metadata (boost::filesystem::path path) const;
        void write_template (boost::filesystem::path path) const;
-       boost::shared_ptr<xmlpp::Document> metadata (bool with_content_paths = true) const;
+       std::shared_ptr<xmlpp::Document> metadata (bool with_content_paths = true) const;
 
-       void copy_from (boost::shared_ptr<const Film> film);
+       void copy_from (std::shared_ptr<const Film> film);
 
        std::string isdcf_name (bool if_created_now) const;
        std::string dcp_name (bool if_created_now = false) const;
@@ -179,7 +178,7 @@ public:
 
        void repeat_content (ContentList, int);
 
-       boost::shared_ptr<const Playlist> playlist () const {
+       std::shared_ptr<const Playlist> playlist () const {
                return _playlist;
        }
 
@@ -386,12 +385,12 @@ public:
        void set_directory (boost::filesystem::path);
        void set_name (std::string);
        void set_use_isdcf_name (bool);
-       void examine_and_add_content (boost::shared_ptr<Content> content, bool disable_audio_analysis = false);
-       void add_content (boost::shared_ptr<Content>);
-       void remove_content (boost::shared_ptr<Content>);
+       void examine_and_add_content (std::shared_ptr<Content> content, bool disable_audio_analysis = false);
+       void add_content (std::shared_ptr<Content>);
+       void remove_content (std::shared_ptr<Content>);
        void remove_content (ContentList);
-       void move_content_earlier (boost::shared_ptr<Content>);
-       void move_content_later (boost::shared_ptr<Content>);
+       void move_content_earlier (std::shared_ptr<Content>);
+       void move_content_later (std::shared_ptr<Content>);
        void set_dcp_content_type (DCPContentType const *);
        void set_container (Ratio const *, bool user_explicit = true);
        void set_resolution (Resolution, bool user_explicit = true);
@@ -432,7 +431,7 @@ public:
        mutable boost::signals2::signal<void (ChangeType, Property)> Change;
 
        /** Emitted when some property of our content has changed */
-       mutable boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> ContentChange;
+       mutable boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> ContentChange;
 
        /** Emitted when the film's length might have changed; this is not like a normal
            property as its value is derived from the playlist, so it has its own signal.
@@ -459,9 +458,9 @@ private:
        std::string video_identifier () const;
        void playlist_change (ChangeType);
        void playlist_order_changed ();
-       void playlist_content_change (ChangeType type, boost::weak_ptr<Content>, int, bool frequent);
+       void playlist_content_change (ChangeType type, std::weak_ptr<Content>, int, bool frequent);
        void playlist_length_change ();
-       void maybe_add_content (boost::weak_ptr<Job>, boost::weak_ptr<Content>, bool disable_audio_analysis);
+       void maybe_add_content (std::weak_ptr<Job>, std::weak_ptr<Content>, bool disable_audio_analysis);
        void audio_analysis_finished ();
        void check_settings_consistency ();
        void maybe_set_container_and_resolution ();
@@ -469,8 +468,8 @@ private:
        static std::string const metadata_file;
 
        /** Log to write to */
-       boost::shared_ptr<Log> _log;
-       boost::shared_ptr<Playlist> _playlist;
+       std::shared_ptr<Log> _log;
+       std::shared_ptr<Playlist> _playlist;
 
        /** Complete path to directory containing the film metadata;
         *  must not be relative.
@@ -537,7 +536,7 @@ private:
        /** true if our state has changed since we last saved it */
        mutable bool _dirty;
        /** film being used as a template, or 0 */
-       boost::shared_ptr<Film> _template_film;
+       std::shared_ptr<Film> _template_film;
 
        /** Be tolerant of errors in content (currently applies to DCP only).
            Not saved as state.
index daceeaf2d96924b97fb5af633927e73e04fdd2f7..2a690eeb9aa276a79afe08508b0d864edc5af882 100644 (file)
@@ -42,8 +42,8 @@ using std::pair;
 using std::make_pair;
 using std::cout;
 using std::vector;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using dcp::Size;
 
 /** Construct a FilterGraph for the settings in a piece of content */
index 83b6562f041a46c5c45d8d671f1a3a27b6fea72d..f6a61f24ab541d65ff732a26559732e4ecdde2f7 100644 (file)
 #include "font.h"
 #include "font_data.h"
 #include "dcpomatic_assert.h"
-#include <boost/shared_ptr.hpp>
 
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 dcpomatic::FontData::FontData (shared_ptr<const Font> font)
index 686fca7c973e21fde47534d07ec203bb8cae3b4b..895493ce27673a7c99f53b1a8527e1b95cb8a796 100644 (file)
@@ -38,7 +38,7 @@ class Font;
 class FontData
 {
 public:
-       FontData (boost::shared_ptr<const Font> font);
+       FontData (std::shared_ptr<const Font> font);
 
        FontData (std::string id_, dcp::ArrayData data_)
                : id(id_)
index 8ad6de9425aa2675158ed5b7a3421658e4c0aedf..7b6d1389274832dc6d86a508bdc15062432db84c 100644 (file)
@@ -28,7 +28,7 @@
 #include "i18n.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static bool
 about_equal (double a, double b)
index acb75c0b5764e91257ef21d86ff6474b99134ee0..d7fed6dd0b45d05c87954f0eea1e8ee835633cac 100644 (file)
 #ifndef DCPOMATIC_FRAME_RATE_CHANGE_H
 #define DCPOMATIC_FRAME_RATE_CHANGE_H
 
-#include <boost/shared_ptr.hpp>
+
+#include <memory>
 #include <string>
 
+
 class Film;
 class Content;
 
@@ -32,8 +34,8 @@ class FrameRateChange
 public:
        FrameRateChange ();
        FrameRateChange (double, int);
-       FrameRateChange (boost::shared_ptr<const Film> film, boost::shared_ptr<const Content> content);
-       FrameRateChange (boost::shared_ptr<const Film> film, Content const * content);
+       FrameRateChange (std::shared_ptr<const Film> film, std::shared_ptr<const Content> content);
+       FrameRateChange (std::shared_ptr<const Film> film, Content const * content);
 
        /** @return factor by which to multiply a source frame rate
            to get the effective rate after any skip or repeat has happened.
index 9781f24bb9e01bcd0cf1bc86094bda48248be2dc..e52e448cf0cd2b2e1011f05b07fdcd013634ce62 100644 (file)
@@ -52,8 +52,8 @@ using std::pair;
 using std::min;
 using std::max;
 using std::cout;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 using boost::bind;
 using namespace dcpomatic;
index 9164e210659b4b278cab8b200fcad0bc767968a6..d070dc2014c3e707b6362bc6fc2d64af094d34b5 100644 (file)
@@ -24,7 +24,6 @@
 #include "dcp_text_track.h"
 #include "dcpomatic_time.h"
 #include "weak_film.h"
-#include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <boost/atomic.hpp>
 #include <vector>
@@ -38,7 +37,7 @@ class Writer;
 class Hints : public Signaller, public ExceptionStore, public WeakConstFilm
 {
 public:
-       explicit Hints (boost::weak_ptr<const Film> film);
+       explicit Hints (std::weak_ptr<const Film> film);
        ~Hints ();
 
        void start ();
@@ -78,7 +77,7 @@ private:
         *  our final DCP will have.  This means we can see how big the files will be and warn if they
         *  will be too big.
         */
-       boost::shared_ptr<Writer> _writer;
+       std::shared_ptr<Writer> _writer;
 
        bool _long_ccap;
        bool _overlap_ccap;
index fb9efdf8926a1c0791e5bf8229a5ad5647720838..a31874e18e8531b5a86414a417d29d1ac01f73c6 100644 (file)
@@ -52,7 +52,7 @@ using std::cout;
 using std::cerr;
 using std::list;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::Size;
 
 
@@ -952,7 +952,7 @@ Image::allocate ()
 }
 
 Image::Image (Image const & other)
-       : boost::enable_shared_from_this<Image>(other)
+       : std::enable_shared_from_this<Image>(other)
        , _size (other._size)
        , _pixel_format (other._pixel_format)
        , _aligned (other._aligned)
index 7dd633f617c8a7166c4e2baa6d4119e62fe1cc20..a5823656c85b1d676ed636ee9abbbaca0ff7b224 100644 (file)
@@ -33,19 +33,17 @@ extern "C" {
 }
 #include <dcp/array_data.h>
 #include <dcp/colour_conversion.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
 
 struct AVFrame;
 class Socket;
 
-class Image : public boost::enable_shared_from_this<Image>
+class Image : public std::enable_shared_from_this<Image>
 {
 public:
        Image (AVPixelFormat p, dcp::Size s, bool aligned);
        explicit Image (AVFrame *);
        explicit Image (Image const &);
-       Image (boost::shared_ptr<const Image>, bool);
+       Image (std::shared_ptr<const Image>, bool);
        Image& operator= (Image const &);
        ~Image ();
 
@@ -63,9 +61,9 @@ public:
        dcp::Size sample_size (int) const;
        float bytes_per_pixel (int) const;
 
-       boost::shared_ptr<Image> convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
-       boost::shared_ptr<Image> scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
-       boost::shared_ptr<Image> crop_scale_window (
+       std::shared_ptr<Image> convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
+       std::shared_ptr<Image> scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
+       std::shared_ptr<Image> crop_scale_window (
                Crop crop,
                dcp::Size inter_size,
                dcp::Size out_size,
@@ -79,13 +77,13 @@ public:
 
        void make_black ();
        void make_transparent ();
-       void alpha_blend (boost::shared_ptr<const Image> image, Position<int> pos);
-       void copy (boost::shared_ptr<const Image> image, Position<int> pos);
+       void alpha_blend (std::shared_ptr<const Image> image, Position<int> pos);
+       void copy (std::shared_ptr<const Image> image, Position<int> pos);
        void fade (float);
        void video_range_to_full_range ();
 
-       void read_from_socket (boost::shared_ptr<Socket>);
-       void write_to_socket (boost::shared_ptr<Socket>) const;
+       void read_from_socket (std::shared_ptr<Socket>);
+       void write_to_socket (std::shared_ptr<Socket>) const;
 
        AVPixelFormat pixel_format () const {
                return _pixel_format;
@@ -97,7 +95,7 @@ public:
 
        void png_error (char const * message);
 
-       static boost::shared_ptr<const Image> ensure_aligned (boost::shared_ptr<const Image> image);
+       static std::shared_ptr<const Image> ensure_aligned (std::shared_ptr<const Image> image);
 
 private:
        friend struct pixel_formats_test;
index 8cf44bda1fd870682575f9bc3a6410b59f92bc5b..20f32c05dc0310c6d14b2a5d30758711c8218e1d 100644 (file)
@@ -38,7 +38,7 @@ using std::string;
 using std::cout;
 using std::list;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 ImageContent::ImageContent (boost::filesystem::path p)
index 970a68d661271be3b567d714ec880cc55111527a..81396c63ba19a95683c856d2441d17f62db80306 100644 (file)
@@ -29,19 +29,19 @@ public:
        ImageContent (boost::filesystem::path);
        ImageContent (cxml::ConstNodePtr, int);
 
-       boost::shared_ptr<ImageContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<ImageContent> (Content::shared_from_this ());
+       std::shared_ptr<ImageContent> shared_from_this () {
+               return std::dynamic_pointer_cast<ImageContent> (Content::shared_from_this ());
        };
 
-       boost::shared_ptr<const ImageContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const ImageContent> (Content::shared_from_this ());
+       std::shared_ptr<const ImageContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const ImageContent> (Content::shared_from_this ());
        };
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
 
        std::string identifier () const;
@@ -51,7 +51,7 @@ public:
        bool still () const;
 
 private:
-       void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
+       void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
 
        boost::optional<boost::filesystem::path> _path_to_scan;
 };
index 7757cc4aac47d869697704765f76f68b43ddf744..d35a0625f01a171c106f1fb89d33108ef2a4dd2e 100644 (file)
@@ -34,7 +34,7 @@
 #include "i18n.h"
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::Size;
 using namespace dcpomatic;
 
index eeec779ba8849129d7b73d2c68d9622e4bcafc42..d575f9021f3e019add9753ac05c3e1b0c703222b 100644 (file)
@@ -27,9 +27,9 @@ class ImageProxy;
 class ImageDecoder : public Decoder
 {
 public:
-       ImageDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const ImageContent> c);
+       ImageDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const ImageContent> c);
 
-       boost::shared_ptr<const ImageContent> content () {
+       std::shared_ptr<const ImageContent> content () {
                return _image_content;
        }
 
@@ -38,7 +38,7 @@ public:
 
 private:
 
-       boost::shared_ptr<const ImageContent> _image_content;
-       boost::shared_ptr<ImageProxy> _image;
+       std::shared_ptr<const ImageContent> _image_content;
+       std::shared_ptr<ImageProxy> _image;
        Frame _frame_video_position;
 };
index aa80d0daad8adcf424b55ca84088df23eddc98cb..60dbd511be74bf6055506f57e9aeb1a8aaf14d48 100644 (file)
@@ -38,7 +38,7 @@
 using std::cout;
 using std::list;
 using std::sort;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const ImageContent> content, shared_ptr<Job>)
index ca8ecf9c8c7a013dfbd91557c5357faa68997175..839e390ed17dd01570bdf6ae318e2b75fda38415 100644 (file)
@@ -25,7 +25,7 @@ class ImageContent;
 class ImageExaminer : public VideoExaminer
 {
 public:
-       ImageExaminer (boost::shared_ptr<const Film>, boost::shared_ptr<const ImageContent>, boost::shared_ptr<Job>);
+       ImageExaminer (std::shared_ptr<const Film>, std::shared_ptr<const ImageContent>, std::shared_ptr<Job>);
 
        bool has_video () const {
                return true;
@@ -41,8 +41,8 @@ public:
        }
 
 private:
-       boost::weak_ptr<const Film> _film;
-       boost::shared_ptr<const ImageContent> _image_content;
+       std::weak_ptr<const Film> _film;
+       std::shared_ptr<const ImageContent> _image_content;
        boost::optional<dcp::Size> _video_size;
        Frame _video_length;
 };
index e16fab0630af1bece7092f6579c967d15a8315c3..f6f6350d8f53a258caa4814fb5aea2c4a77f6947 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 shared_ptr<ImageProxy>
 image_proxy_factory (shared_ptr<cxml::Node> xml, shared_ptr<Socket> socket)
index 08516e718bb4dbfe34ae5f07a81ef16abfe3265b..b279e634443736628706103b88dc6fb0b960c698 100644 (file)
@@ -29,7 +29,6 @@ extern "C" {
 #include <libavutil/pixfmt.h>
 }
 #include <dcp/types.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/optional.hpp>
 #include <boost/utility.hpp>
 
@@ -61,20 +60,20 @@ public:
        virtual ~ImageProxy () {}
 
        struct Result {
-               Result (boost::shared_ptr<Image> image_, int log2_scaling_)
+               Result (std::shared_ptr<Image> image_, int log2_scaling_)
                        : image (image_)
                        , log2_scaling (log2_scaling_)
                        , error (false)
                {}
 
-               Result (boost::shared_ptr<Image> image_, int log2_scaling_, bool error_)
+               Result (std::shared_ptr<Image> image_, int log2_scaling_, bool error_)
                        : image (image_)
                        , log2_scaling (log2_scaling_)
                        , error (error_)
                {}
 
                /** Image (which will be aligned) */
-               boost::shared_ptr<Image> image;
+               std::shared_ptr<Image> image;
                /** log2 of any scaling down that has already been applied to the image;
                 *  e.g. if the image is already half the size of the original, this value
                 *  will be 1.
@@ -93,9 +92,9 @@ public:
                ) const = 0;
 
        virtual void add_metadata (xmlpp::Node *) const = 0;
-       virtual void write_to_socket (boost::shared_ptr<Socket>) const = 0;
+       virtual void write_to_socket (std::shared_ptr<Socket>) const = 0;
        /** @return true if our image is definitely the same as another, false if it is probably not */
-       virtual bool same (boost::shared_ptr<const ImageProxy>) const = 0;
+       virtual bool same (std::shared_ptr<const ImageProxy>) const = 0;
        /** Do any useful work that would speed up a subsequent call to ::image().
         *  This method may be called in a different thread to image().
         *  @return log2 of any scaling down that will be applied to the image.
@@ -104,6 +103,6 @@ public:
        virtual size_t memory_used () const = 0;
 };
 
-boost::shared_ptr<ImageProxy> image_proxy_factory (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+std::shared_ptr<ImageProxy> image_proxy_factory (std::shared_ptr<cxml::Node> xml, std::shared_ptr<Socket> socket);
 
 #endif
index e117dc28445be008e3bea71c2801ed4fa1d5f4c1..368b6e3a52c90225a407eeb63d807f3f3bafce5d 100644 (file)
@@ -30,7 +30,7 @@ DCPOMATIC_ENABLE_WARNINGS
 #include "i18n.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::raw_convert;
 
 ISDCFMetadata::ISDCFMetadata (cxml::ConstNodePtr node)
index 796523b38df4e5b714c8789b6d4a442c9c91c9f2..273bce8fb6331acc76101e2b1b1a0f42ce609c44 100644 (file)
@@ -45,8 +45,8 @@
 using std::list;
 using std::cout;
 using std::exception;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 using dcp::Data;
 using namespace dcpomatic;
index 818c75c99209052044f6d2131e680417406555a2..afa010ace01cb71c38398e6a03cb1931fc1a7330 100644 (file)
 #include "cross.h"
 #include "event_history.h"
 #include "exception_store.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>
 #include <boost/thread.hpp>
 #include <boost/optional.hpp>
 #include <boost/signals2.hpp>
-#include <boost/enable_shared_from_this.hpp>
 #include <list>
 #include <stdint.h>
 
@@ -53,17 +51,17 @@ class PlayerVideo;
  *  the work around threads and encoding servers.
  */
 
-class J2KEncoder : public boost::noncopyable, public ExceptionStore, public boost::enable_shared_from_this<J2KEncoder>
+class J2KEncoder : public boost::noncopyable, public ExceptionStore, public std::enable_shared_from_this<J2KEncoder>
 {
 public:
-       J2KEncoder (boost::shared_ptr<const Film> film, boost::shared_ptr<Writer> writer);
+       J2KEncoder (std::shared_ptr<const Film> film, std::shared_ptr<Writer> writer);
        ~J2KEncoder ();
 
        /** Called to indicate that a processing run is about to begin */
        void begin ();
 
        /** Called to pass a bit of video to be encoded as the next DCP frame */
-       void encode (boost::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
+       void encode (std::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
 
        /** Called when a processing run has finished */
        void end ();
@@ -75,7 +73,7 @@ public:
 
 private:
 
-       static void call_servers_list_changed (boost::weak_ptr<J2KEncoder> encoder);
+       static void call_servers_list_changed (std::weak_ptr<J2KEncoder> encoder);
 
        void frame_done ();
 
@@ -83,24 +81,24 @@ private:
        void terminate_threads ();
 
        /** Film that we are encoding */
-       boost::shared_ptr<const Film> _film;
+       std::shared_ptr<const Film> _film;
 
        EventHistory _history;
 
        boost::mutex _threads_mutex;
-       boost::shared_ptr<boost::thread_group> _threads;
+       std::shared_ptr<boost::thread_group> _threads;
 
        mutable boost::mutex _queue_mutex;
-       std::list<boost::shared_ptr<DCPVideo> > _queue;
+       std::list<std::shared_ptr<DCPVideo> > _queue;
        /** condition to manage thread wakeups when we have nothing to do */
        boost::condition _empty_condition;
        /** condition to manage thread wakeups when we have too much to do */
        boost::condition _full_condition;
 
-       boost::shared_ptr<Writer> _writer;
+       std::shared_ptr<Writer> _writer;
        Waker _waker;
 
-       boost::shared_ptr<PlayerVideo> _last_player_video[EYES_COUNT];
+       std::shared_ptr<PlayerVideo> _last_player_video[EYES_COUNT];
        boost::optional<dcpomatic::DCPTime> _last_player_video_time;
 
        boost::signals2::scoped_connection _server_found_connection;
index 21083504eace640ca826814c14133bc8e0776297..13305b7f36a617dc421be1113174d755ae3180ce 100644 (file)
@@ -43,9 +43,9 @@ using std::cout;
 using std::max;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using dcp::ArrayData;
 using dcp::raw_convert;
 
index 3eccc213da41c348a73f431f7e5ac3f992b50698..91c90dba71bad6cd95cdfe6e095a1ebab1439804 100644 (file)
@@ -34,33 +34,33 @@ public:
        J2KImageProxy (boost::filesystem::path path, dcp::Size, AVPixelFormat pixel_format);
 
        J2KImageProxy (
-               boost::shared_ptr<const dcp::MonoPictureFrame> frame,
+               std::shared_ptr<const dcp::MonoPictureFrame> frame,
                dcp::Size,
                AVPixelFormat pixel_format,
                boost::optional<int> forced_reduction
                );
 
        J2KImageProxy (
-               boost::shared_ptr<const dcp::StereoPictureFrame> frame,
+               std::shared_ptr<const dcp::StereoPictureFrame> frame,
                dcp::Size,
                dcp::Eye,
                AVPixelFormat pixel_format,
                boost::optional<int> forced_reduction
                );
 
-       J2KImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+       J2KImageProxy (std::shared_ptr<cxml::Node> xml, std::shared_ptr<Socket> socket);
 
        Result image (
                boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
                ) const;
 
        void add_metadata (xmlpp::Node *) const;
-       void write_to_socket (boost::shared_ptr<Socket>) const;
+       void write_to_socket (std::shared_ptr<Socket>) const;
        /** @return true if our image is definitely the same as another, false if it is probably not */
-       bool same (boost::shared_ptr<const ImageProxy>) const;
+       bool same (std::shared_ptr<const ImageProxy>) const;
        int prepare (boost::optional<dcp::Size> = boost::optional<dcp::Size>()) const;
 
-       boost::shared_ptr<const dcp::Data> j2k () const {
+       std::shared_ptr<const dcp::Data> j2k () const {
                return _data;
        }
 
@@ -76,10 +76,10 @@ private:
        /* For tests */
        J2KImageProxy (dcp::ArrayData data, dcp::Size size, AVPixelFormat pixel_format);
 
-       boost::shared_ptr<const dcp::Data> _data;
+       std::shared_ptr<const dcp::Data> _data;
        dcp::Size _size;
        boost::optional<dcp::Eye> _eye;
-       mutable boost::shared_ptr<Image> _image;
+       mutable std::shared_ptr<Image> _image;
        mutable boost::optional<dcp::Size> _target_size;
        mutable boost::optional<int> _reduce;
        AVPixelFormat _pixel_format;
index d960dfaee99f0da96f329cc82a2b97082556f51d..525f86b2c92d9a2e5b16f63f27119e55683e9d4b 100644 (file)
@@ -43,7 +43,7 @@
 using std::string;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
 using namespace dcpomatic;
index a0e988fc8ccd11df26983127e347691da43cd2f2..d047913a0a750f9f82c57ee65a3dcdd86497732b 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "signaller.h"
 #include <boost/thread/mutex.hpp>
-#include <boost/enable_shared_from_this.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread.hpp>
 #include <string>
@@ -37,10 +36,10 @@ class Film;
 /** @class Job
  *  @brief A parent class to represent long-running tasks which are run in their own thread.
  */
-class Job : public boost::enable_shared_from_this<Job>, public Signaller, public boost::noncopyable
+class Job : public std::enable_shared_from_this<Job>, public Signaller, public boost::noncopyable
 {
 public:
-       explicit Job (boost::shared_ptr<const Film> film);
+       explicit Job (std::shared_ptr<const Film> film);
        virtual ~Job ();
 
        /** @return user-readable name of this job */
@@ -80,7 +79,7 @@ public:
        void sub (std::string);
        boost::optional<float> progress () const;
 
-       boost::shared_ptr<const Film> film () const {
+       std::shared_ptr<const Film> film () const {
                return _film;
        }
 
@@ -114,7 +113,7 @@ protected:
        void check_for_interruption_or_pause ();
        void stop_thread ();
 
-       boost::shared_ptr<const Film> _film;
+       std::shared_ptr<const Film> _film;
 
 private:
 
index dbaf15cbce150c400143417dcb6be04772e1300b..358820c6a3c35a0ff88d3a295f2c3566435a58e1 100644 (file)
 using std::string;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::function;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::bind;
 
index dd7a28db208914c3c67e06d09f04d5acd1c96595..461688845c53b2d0dcf767332eb5886d212168a7 100644 (file)
@@ -43,13 +43,13 @@ extern bool wait_for_jobs ();
 class JobManager : public Signaller, public boost::noncopyable
 {
 public:
-       boost::shared_ptr<Job> add (boost::shared_ptr<Job>);
-       boost::shared_ptr<Job> add_after (boost::shared_ptr<Job> after, boost::shared_ptr<Job> j);
-       std::list<boost::shared_ptr<Job> > get () const;
+       std::shared_ptr<Job> add (std::shared_ptr<Job>);
+       std::shared_ptr<Job> add_after (std::shared_ptr<Job> after, std::shared_ptr<Job> j);
+       std::list<std::shared_ptr<Job> > get () const;
        bool work_to_do () const;
        bool errors () const;
-       void increase_priority (boost::shared_ptr<Job>);
-       void decrease_priority (boost::shared_ptr<Job>);
+       void increase_priority (std::shared_ptr<Job>);
+       void decrease_priority (std::shared_ptr<Job>);
        void pause ();
        void resume ();
        bool paused () const {
@@ -58,21 +58,21 @@ public:
        }
 
        void analyse_audio (
-               boost::shared_ptr<const Film> film,
-               boost::shared_ptr<const Playlist> playlist,
+               std::shared_ptr<const Film> film,
+               std::shared_ptr<const Playlist> playlist,
                bool from_zero,
                boost::signals2::connection& connection,
                boost::function<void()> ready
                );
 
        void analyse_subtitles (
-               boost::shared_ptr<const Film> film,
-               boost::shared_ptr<Content> content,
+               std::shared_ptr<const Film> film,
+               std::shared_ptr<Content> content,
                boost::signals2::connection& connection,
                boost::function<void()> ready
                );
 
-       boost::signals2::signal<void (boost::weak_ptr<Job>)> JobAdded;
+       boost::signals2::signal<void (std::weak_ptr<Job>)> JobAdded;
        boost::signals2::signal<void ()> JobsReordered;
        boost::signals2::signal<void (boost::optional<std::string>, boost::optional<std::string>)> ActiveJobsChanged;
 
@@ -94,11 +94,11 @@ private:
        mutable boost::mutex _mutex;
        boost::condition _empty_condition;
        /** List of jobs in the order that they will be executed */
-       std::list<boost::shared_ptr<Job> > _jobs;
+       std::list<std::shared_ptr<Job> > _jobs;
        std::list<boost::signals2::connection> _connections;
        bool _terminate;
        bool _paused;
-       boost::shared_ptr<Job> _paused_job;
+       std::shared_ptr<Job> _paused_job;
 
        boost::optional<std::string> _last_active_job;
        boost::thread _scheduler;
index 211d0c846e0a0167abc1f4b62514564b1ebc49ba..9c1034a68bf6f26e41df3a15e0d040ead6044f4a 100644 (file)
@@ -35,8 +35,8 @@ using std::cout;
 using std::map;
 using std::list;
 using boost::thread;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::asio::ip::tcp;
 using dcp::raw_convert;
 
index f36e621f3f6fdbc23ee27d811c5213b0408b422f..c97e496d1442c6308fa300c254834462b26cd578 100644 (file)
@@ -27,6 +27,6 @@ public:
 
 private:
        void run (int port);
-       void handle (boost::shared_ptr<boost::asio::ip::tcp::socket> socket);
-       void request (std::string url, boost::shared_ptr<boost::asio::ip::tcp::socket> socket);
+       void handle (std::shared_ptr<boost::asio::ip::tcp::socket> socket);
+       void request (std::string url, std::shared_ptr<boost::asio::ip::tcp::socket> socket);
 };
index 0ef1b8f380b1fc305366470b3278ce2be991c980..2747e414060463804141419526603a7ca4fc1ace 100644 (file)
@@ -35,7 +35,7 @@
 using std::string;
 using std::cout;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
 
index 2e07334de7eca49e85c96899ffe6d739b0270637..fc80a87438c25e0f1fcfc4a2298a0905aaedd936 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <dcp/encrypted_kdm.h>
 #include <dcp/name_format.h>
-#include <boost/shared_ptr.hpp>
 
 class Cinema;
 
@@ -67,7 +66,7 @@ private:
 };
 
 
-typedef boost::shared_ptr<KDMWithMetadata> KDMWithMetadataPtr;
+typedef std::shared_ptr<KDMWithMetadata> KDMWithMetadataPtr;
 
 
 int write_files (
index 7851c133f9bc74f84a8cc912eecca63acd484b03..e1716f1c65e5671abd9c7042b861faf084fa06a8 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 Log::Log ()
        : _types (0)
index 873d5f7a1674238b7946a3a0bef1434da54d3841..c71f8ab16cff700b6cce7265a91de27ff7ab9afd 100644 (file)
@@ -41,7 +41,7 @@ public:
        Log ();
        virtual ~Log () {}
 
-       void log (boost::shared_ptr<const LogEntry> entry);
+       void log (std::shared_ptr<const LogEntry> entry);
        void log (std::string message, int type);
        void dcp_log (dcp::NoteType type, std::string message);
 
@@ -64,7 +64,7 @@ protected:
        mutable boost::mutex _mutex;
 
 private:
-       virtual void do_log (boost::shared_ptr<const LogEntry> entry) = 0;
+       virtual void do_log (std::shared_ptr<const LogEntry> entry) = 0;
 
        /** bit-field of log types which should be put into the log (others are ignored) */
        int _types;
index fd80937ed2b3a5c7a96a3a24bfc9ee7ff92fe22d..eb87d245b54b7dc6168039157810ad2b68dbb91a 100644 (file)
@@ -27,7 +27,7 @@
 using std::string;
 using std::min;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 string
 MidSideDecoder::name () const
index e5c1e0a05fa6067afc8016c3ae5baa5c6c9959bb..8be5db67fb13665067f69decac74796642bf8e95 100644 (file)
@@ -26,8 +26,8 @@ public:
        std::string name () const;
        std::string id () const;
        int out_channels () const;
-       boost::shared_ptr<AudioProcessor> clone (int) const;
-       boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels);
+       std::shared_ptr<AudioProcessor> clone (int) const;
+       std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers>, int channels);
        void make_audio_mapping_default (AudioMapping& mapping) const;
        std::vector<NamedChannel> input_names () const;
 };
index 01bc324cb6faee70d8c8c30ffce9fa455fa7f490..ce6017ca2f3879440addfccb55ef044ecf784783 100644 (file)
@@ -23,5 +23,5 @@
 class NullLog : public Log
 {
 private:
-       void do_log (boost::shared_ptr<const LogEntry>) {}
+       void do_log (std::shared_ptr<const LogEntry>) {}
 };
index 5ed7a983261fdb3a2b76924bf5cbd531d615f95a..f5ccd48d0276db1153e1129f7e2ca1633bd2bbd9 100644 (file)
@@ -23,7 +23,7 @@
 #include "content.h"
 #include <boost/foreach.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 using namespace dcpomatic;
 
index 9bd867030634af03970f54a17ce5f8841d40465a..60c0cd5370167d7eba327577b4c8ac903d7c9091 100644 (file)
@@ -29,5 +29,5 @@ class Film;
  *  ContentList
  */
 ContentList overlaps (
-       boost::shared_ptr<const Film> film, ContentList cl, boost::function<bool (boost::shared_ptr<const Content>)> part, dcpomatic::DCPTime from, dcpomatic::DCPTime to
+       std::shared_ptr<const Film> film, ContentList cl, boost::function<bool (std::shared_ptr<const Content>)> part, dcpomatic::DCPTime from, dcpomatic::DCPTime to
        );
index 440beecf4bd6af079bd5b552fae0fddd3ead7a44..a2e62d366004d51a65eec04f330f61e135c9c09d 100644 (file)
@@ -30,15 +30,15 @@ class Decoder;
 class Piece
 {
 public:
-       Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f)
+       Piece (std::shared_ptr<Content> c, std::shared_ptr<Decoder> d, FrameRateChange f)
                : content (c)
                , decoder (d)
                , frc (f)
                , done (false)
        {}
 
-       boost::shared_ptr<Content> content;
-       boost::shared_ptr<Decoder> decoder;
+       std::shared_ptr<Content> content;
+       std::shared_ptr<Decoder> decoder;
        FrameRateChange frc;
        bool done;
 };
index dd11694ef4687477f567033bd95b29d2e136ef15..e6e8aca86ea198bedaa1e5e4992732639ec4ee5e 100644 (file)
@@ -73,9 +73,9 @@ using std::pair;
 using std::map;
 using std::make_pair;
 using std::copy;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::scoped_ptr;
 #if BOOST_VERSION >= 106100
@@ -384,7 +384,7 @@ Player::black_player_video_frame (Eyes eyes) const
                        PART_WHOLE,
                        PresetColourConversion::all().front().conversion,
                        VIDEO_RANGE_FULL,
-                       boost::weak_ptr<Content>(),
+                       std::weak_ptr<Content>(),
                        boost::optional<Frame>(),
                        false
                )
index c695e02cde177a5a1f0a378c509ac36a1913862b..48ed568dad99d445b8e871837489eedabdf50347 100644 (file)
@@ -35,8 +35,6 @@
 #include "audio_stream.h"
 #include "audio_merger.h"
 #include "empty.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
 #include <boost/atomic.hpp>
 #include <list>
 
@@ -69,11 +67,11 @@ public:
 /** @class Player
  *  @brief A class which can play a Playlist.
  */
-class Player : public boost::enable_shared_from_this<Player>, public boost::noncopyable
+class Player : public std::enable_shared_from_this<Player>, public boost::noncopyable
 {
 public:
-       Player (boost::shared_ptr<const Film>);
-       Player (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist> playlist);
+       Player (std::shared_ptr<const Film>);
+       Player (std::shared_ptr<const Film>, std::shared_ptr<const Playlist> playlist);
        ~Player ();
 
        bool pass ();
@@ -95,18 +93,18 @@ public:
        void set_play_referenced ();
        void set_dcp_decode_reduction (boost::optional<int> reduction);
 
-       boost::optional<dcpomatic::DCPTime> content_time_to_dcp (boost::shared_ptr<Content> content, dcpomatic::ContentTime t);
+       boost::optional<dcpomatic::DCPTime> content_time_to_dcp (std::shared_ptr<Content> content, dcpomatic::ContentTime t);
 
        boost::signals2::signal<void (ChangeType, int, bool)> Change;
 
        /** Emitted when a video frame is ready.  These emissions happen in the correct order. */
-       boost::signals2::signal<void (boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime)> Video;
-       boost::signals2::signal<void (boost::shared_ptr<AudioBuffers>, dcpomatic::DCPTime, int)> Audio;
+       boost::signals2::signal<void (std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime)> Video;
+       boost::signals2::signal<void (std::shared_ptr<AudioBuffers>, dcpomatic::DCPTime, int)> Audio;
        /** Emitted when a text is ready.  This signal may be emitted considerably
         *  after the corresponding Video.
         */
        boost::signals2::signal<void (PlayerText, TextType, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod)> Text;
-       boost::signals2::signal<void (boost::shared_ptr<const dcp::AtmosFrame>, dcpomatic::DCPTime, AtmosMetadata)> Atmos;
+       boost::signals2::signal<void (std::shared_ptr<const dcp::AtmosFrame>, dcpomatic::DCPTime, AtmosMetadata)> Atmos;
 
 private:
        friend class PlayerWrapper;
@@ -126,31 +124,31 @@ private:
        void film_change (ChangeType, Film::Property);
        void playlist_change (ChangeType);
        void playlist_content_change (ChangeType, int, bool);
-       Frame dcp_to_content_video (boost::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
-       dcpomatic::DCPTime content_video_to_dcp (boost::shared_ptr<const Piece> piece, Frame f) const;
-       Frame dcp_to_resampled_audio (boost::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
-       dcpomatic::DCPTime resampled_audio_to_dcp (boost::shared_ptr<const Piece> piece, Frame f) const;
-       dcpomatic::ContentTime dcp_to_content_time (boost::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
-       dcpomatic::DCPTime content_time_to_dcp (boost::shared_ptr<const Piece> piece, dcpomatic::ContentTime t) const;
-       boost::shared_ptr<PlayerVideo> black_player_video_frame (Eyes eyes) const;
-
-       void video (boost::weak_ptr<Piece>, ContentVideo);
-       void audio (boost::weak_ptr<Piece>, AudioStreamPtr, ContentAudio);
-       void bitmap_text_start (boost::weak_ptr<Piece>, boost::weak_ptr<const TextContent>, ContentBitmapText);
-       void plain_text_start (boost::weak_ptr<Piece>, boost::weak_ptr<const TextContent>, ContentStringText);
-       void subtitle_stop (boost::weak_ptr<Piece>, boost::weak_ptr<const TextContent>, dcpomatic::ContentTime);
-       void atmos (boost::weak_ptr<Piece>, ContentAtmos);
+       Frame dcp_to_content_video (std::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
+       dcpomatic::DCPTime content_video_to_dcp (std::shared_ptr<const Piece> piece, Frame f) const;
+       Frame dcp_to_resampled_audio (std::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
+       dcpomatic::DCPTime resampled_audio_to_dcp (std::shared_ptr<const Piece> piece, Frame f) const;
+       dcpomatic::ContentTime dcp_to_content_time (std::shared_ptr<const Piece> piece, dcpomatic::DCPTime t) const;
+       dcpomatic::DCPTime content_time_to_dcp (std::shared_ptr<const Piece> piece, dcpomatic::ContentTime t) const;
+       std::shared_ptr<PlayerVideo> black_player_video_frame (Eyes eyes) const;
+
+       void video (std::weak_ptr<Piece>, ContentVideo);
+       void audio (std::weak_ptr<Piece>, AudioStreamPtr, ContentAudio);
+       void bitmap_text_start (std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, ContentBitmapText);
+       void plain_text_start (std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, ContentStringText);
+       void subtitle_stop (std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, dcpomatic::ContentTime);
+       void atmos (std::weak_ptr<Piece>, ContentAtmos);
 
        dcpomatic::DCPTime one_video_frame () const;
        void fill_audio (dcpomatic::DCPTimePeriod period);
-       std::pair<boost::shared_ptr<AudioBuffers>, dcpomatic::DCPTime> discard_audio (
-               boost::shared_ptr<const AudioBuffers> audio, dcpomatic::DCPTime time, dcpomatic::DCPTime discard_to
+       std::pair<std::shared_ptr<AudioBuffers>, dcpomatic::DCPTime> discard_audio (
+               std::shared_ptr<const AudioBuffers> audio, dcpomatic::DCPTime time, dcpomatic::DCPTime discard_to
                ) const;
        boost::optional<PositionImage> open_subtitles_for_frame (dcpomatic::DCPTime time) const;
-       void emit_video (boost::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
-       void do_emit_video (boost::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
-       void emit_audio (boost::shared_ptr<AudioBuffers> data, dcpomatic::DCPTime time);
-       boost::shared_ptr<const Playlist> playlist () const;
+       void emit_video (std::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
+       void do_emit_video (std::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
+       void emit_audio (std::shared_ptr<AudioBuffers> data, dcpomatic::DCPTime time);
+       std::shared_ptr<const Playlist> playlist () const;
 
        /** Mutex to protect the whole Player state.  When it's used for the preview we have
            seek() and pass() called from the Butler thread and lots of other stuff called
@@ -158,19 +156,19 @@ private:
        */
        mutable boost::mutex _mutex;
 
-       boost::shared_ptr<const Film> _film;
+       std::shared_ptr<const Film> _film;
        /** Playlist, or 0 if we are using the one from the _film */
-       boost::shared_ptr<const Playlist> _playlist;
+       std::shared_ptr<const Playlist> _playlist;
 
        /** > 0 if we are suspended (i.e. pass() and seek() do nothing) */
        boost::atomic<int> _suspended;
-       std::list<boost::shared_ptr<Piece> > _pieces;
+       std::list<std::shared_ptr<Piece> > _pieces;
 
        /** Size of the image we are rendering to; this may be the DCP frame size, or
         *  the size of preview in a window.
         */
        dcp::Size _video_container_size;
-       boost::shared_ptr<Image> _black_image;
+       std::shared_ptr<Image> _black_image;
 
        /** true if the player should ignore all video; i.e. never produce any */
        bool _ignore_video;
@@ -193,24 +191,24 @@ private:
 
        boost::optional<int> _dcp_decode_reduction;
 
-       typedef std::map<boost::weak_ptr<Piece>, boost::shared_ptr<PlayerVideo> > LastVideoMap;
+       typedef std::map<std::weak_ptr<Piece>, std::shared_ptr<PlayerVideo>, std::owner_less<std::weak_ptr<Piece>>> LastVideoMap;
        LastVideoMap _last_video;
 
        AudioMerger _audio_merger;
        Shuffler* _shuffler;
-       std::list<std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _delay;
+       std::list<std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _delay;
 
        class StreamState
        {
        public:
                StreamState () {}
 
-               StreamState (boost::shared_ptr<Piece> p, dcpomatic::DCPTime l)
+               StreamState (std::shared_ptr<Piece> p, dcpomatic::DCPTime l)
                        : piece(p)
                        , last_push_end(l)
                {}
 
-               boost::shared_ptr<Piece> piece;
+               std::shared_ptr<Piece> piece;
                dcpomatic::DCPTime last_push_end;
        };
        std::map<AudioStreamPtr, StreamState> _stream_states;
@@ -219,7 +217,7 @@ private:
        Empty _silent;
 
        ActiveText _active_texts[TEXT_COUNT];
-       boost::shared_ptr<AudioProcessor> _audio_processor;
+       std::shared_ptr<AudioProcessor> _audio_processor;
 
        dcpomatic::DCPTime _playback_length;
 
index d31c7d02467b0507e83fc93e1485a5abcda4fa61..d2448efa67754e27c3c55f02a7d8b187689c3af7 100644 (file)
@@ -23,7 +23,7 @@
 #include <boost/foreach.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 void
index fb1d846d8217d2c4f85af36c7b81270deff45db4..232ba65166f97b9f30d6eec9a4e0ff8c829139f0 100644 (file)
@@ -33,8 +33,8 @@ namespace dcpomatic {
 class PlayerText
 {
 public:
-       void add_fonts (std::list<boost::shared_ptr<dcpomatic::Font> > fonts_);
-       std::list<boost::shared_ptr<dcpomatic::Font> > fonts;
+       void add_fonts (std::list<std::shared_ptr<dcpomatic::Font> > fonts_);
+       std::list<std::shared_ptr<dcpomatic::Font> > fonts;
 
        /** BitmapTexts, with their rectangles transformed as specified by their content */
        std::list<BitmapText> bitmap;
index 4f8acd5e2e0e59435b4f203d12bac2e97220a7a1..683fc27fc2e2c1f2c29af6a1c35510f02e142d27 100644 (file)
@@ -36,9 +36,9 @@ extern "C" {
 using std::string;
 using std::cout;
 using std::pair;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using boost::function;
 using dcp::Data;
index 0952eafb95ea880d47d9874a62fd1b58ece7820f..faf5d6832637f12be510028a78568615f3275a27 100644 (file)
@@ -29,8 +29,6 @@
 extern "C" {
 #include <libavutil/pixfmt.h>
 }
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/noncopyable.hpp>
 
@@ -47,7 +45,7 @@ class PlayerVideo : public boost::noncopyable
 {
 public:
        PlayerVideo (
-               boost::shared_ptr<const ImageProxy>,
+               std::shared_ptr<const ImageProxy>,
                Crop,
                boost::optional<double>,
                dcp::Size,
@@ -56,30 +54,30 @@ public:
                Part,
                boost::optional<ColourConversion>,
                VideoRange video_range,
-               boost::weak_ptr<Content>,
+               std::weak_ptr<Content>,
                boost::optional<Frame>,
                bool error
                );
 
-       PlayerVideo (boost::shared_ptr<cxml::Node>, boost::shared_ptr<Socket>);
+       PlayerVideo (std::shared_ptr<cxml::Node>, std::shared_ptr<Socket>);
 
-       boost::shared_ptr<PlayerVideo> shallow_copy () const;
+       std::shared_ptr<PlayerVideo> shallow_copy () const;
 
        void set_text (PositionImage);
 
        void prepare (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast);
-       boost::shared_ptr<Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
+       std::shared_ptr<Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
 
        static AVPixelFormat force (AVPixelFormat, AVPixelFormat);
        static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat);
 
        void add_metadata (xmlpp::Node* node) const;
-       void write_to_socket (boost::shared_ptr<Socket> socket) const;
+       void write_to_socket (std::shared_ptr<Socket> socket) const;
 
-       bool reset_metadata (boost::shared_ptr<const Film> film, dcp::Size player_video_container_size);
+       bool reset_metadata (std::shared_ptr<const Film> film, dcp::Size player_video_container_size);
 
        bool has_j2k () const;
-       boost::shared_ptr<const dcp::Data> j2k () const;
+       std::shared_ptr<const dcp::Data> j2k () const;
 
        Eyes eyes () const {
                return _eyes;
@@ -101,11 +99,11 @@ public:
                return _inter_size;
        }
 
-       bool same (boost::shared_ptr<const PlayerVideo> other) const;
+       bool same (std::shared_ptr<const PlayerVideo> other) const;
 
        size_t memory_used () const;
 
-       boost::weak_ptr<Content> content () const {
+       std::weak_ptr<Content> content () const {
                return _content;
        }
 
@@ -116,7 +114,7 @@ public:
 private:
        void make_image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const;
 
-       boost::shared_ptr<const ImageProxy> _in;
+       std::shared_ptr<const ImageProxy> _in;
        Crop _crop;
        boost::optional<double> _fade;
        dcp::Size _inter_size;
@@ -127,12 +125,12 @@ private:
        VideoRange _video_range;
        boost::optional<PositionImage> _text;
        /** Content that we came from.  This is so that reset_metadata() can work. */
-       boost::weak_ptr<Content> _content;
+       std::weak_ptr<Content> _content;
        /** Video frame that we came from.  Again, this is for reset_metadata() */
        boost::optional<Frame> _video_frame;
 
        mutable boost::mutex _mutex;
-       mutable boost::shared_ptr<Image> _image;
+       mutable std::shared_ptr<Image> _image;
        /** _crop that was used to make _image */
        mutable Crop _image_crop;
        /** _inter_size that was used to make _image */
index 89990a42796b34c9b54aa7f9e1844c4fb048424a..287f23fd4f929bb368cf691c225ac22f34f4248c 100644 (file)
@@ -35,7 +35,6 @@
 #include <libcxml/cxml.h>
 #include <libxml++/libxml++.h>
 #include <boost/bind/placeholders.hpp>
-#include <boost/shared_ptr.hpp>
 #include <boost/foreach.hpp>
 #include <iostream>
 
@@ -49,9 +48,9 @@ using std::max;
 using std::string;
 using std::pair;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 51c13e33f19a1af510ffcaf5763d65f7689bae7b..b49baa43056369687b51cb8b4f38d6ab5eb27068 100644 (file)
@@ -24,7 +24,6 @@
 #include "util.h"
 #include "frame_rate_change.h"
 #include <libcxml/cxml.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread.hpp>
 #include <list>
@@ -33,7 +32,7 @@ class Film;
 
 struct ContentSorter
 {
-       bool operator() (boost::shared_ptr<Content> a, boost::shared_ptr<Content> b);
+       bool operator() (std::shared_ptr<Content> a, std::shared_ptr<Content> b);
 };
 
 /** @class Playlist
@@ -47,33 +46,33 @@ public:
        ~Playlist ();
 
        void as_xml (xmlpp::Node *, bool with_content_paths);
-       void set_from_xml (boost::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, std::list<std::string>& notes);
+       void set_from_xml (std::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, std::list<std::string>& notes);
 
-       void add (boost::shared_ptr<const Film> film, boost::shared_ptr<Content>);
-       void remove (boost::shared_ptr<Content>);
+       void add (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+       void remove (std::shared_ptr<Content>);
        void remove (ContentList);
-       void move_earlier (boost::shared_ptr<const Film> film, boost::shared_ptr<Content>);
-       void move_later (boost::shared_ptr<const Film> film, boost::shared_ptr<Content>);
+       void move_earlier (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+       void move_later (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
 
        ContentList content () const;
 
        std::string video_identifier () const;
 
-       dcpomatic::DCPTime length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime length (std::shared_ptr<const Film> film) const;
        boost::optional<dcpomatic::DCPTime> start () const;
-       int64_t required_disk_space (boost::shared_ptr<const Film> film, int j2k_bandwidth, int audio_channels, int audio_frame_rate) const;
+       int64_t required_disk_space (std::shared_ptr<const Film> film, int j2k_bandwidth, int audio_channels, int audio_frame_rate) const;
 
        int best_video_frame_rate () const;
-       dcpomatic::DCPTime video_end (boost::shared_ptr<const Film> film) const;
-       dcpomatic::DCPTime text_end (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime video_end (std::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime text_end (std::shared_ptr<const Film> film) const;
        FrameRateChange active_frame_rate_change (dcpomatic::DCPTime, int dcp_frame_rate) const;
-       std::string content_summary (boost::shared_ptr<const Film> film, dcpomatic::DCPTimePeriod period) const;
+       std::string content_summary (std::shared_ptr<const Film> film, dcpomatic::DCPTimePeriod period) const;
        std::pair<double, double> speed_up_range (int dcp_video_frame_rate) const;
 
        void set_sequence (bool);
-       void maybe_sequence (boost::shared_ptr<const Film> film);
+       void maybe_sequence (std::shared_ptr<const Film> film);
 
-       void repeat (boost::shared_ptr<const Film> film, ContentList, int);
+       void repeat (std::shared_ptr<const Film> film, ContentList, int);
 
        /** Emitted when content has been added to or removed from the playlist; implies OrderChanged */
        mutable boost::signals2::signal<void (ChangeType)> Change;
@@ -81,12 +80,12 @@ public:
        /** Emitted when the length might have changed; may sometimes be emitted when it has not */
        mutable boost::signals2::signal<void ()> LengthChange;
 
-       mutable boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> ContentChange;
+       mutable boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> ContentChange;
 
 private:
-       void content_change (boost::weak_ptr<const Film>, ChangeType, boost::weak_ptr<Content>, int, bool);
+       void content_change (std::weak_ptr<const Film>, ChangeType, std::weak_ptr<Content>, int, bool);
        void disconnect ();
-       void reconnect (boost::shared_ptr<const Film> film);
+       void reconnect (std::shared_ptr<const Film> film);
 
        mutable boost::mutex _mutex;
        /** List of content.  Kept sorted in position order. */
index 3e6d833e78a996a32b301df7446d0d85f0aa3313..b78effbd53715f4277f37a76b47f7ec80c3d62fb 100644 (file)
 #ifndef DCPOMATIC_POSITION_IMAGE_H
 #define DCPOMATIC_POSITION_IMAGE_H
 
+
 #include "position.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
+
 
 class Image;
 
@@ -31,12 +33,12 @@ class PositionImage
 public:
        PositionImage () {}
 
-       PositionImage (boost::shared_ptr<Image> i, Position<int> p)
+       PositionImage (std::shared_ptr<Image> i, Position<int> p)
                : image (i)
                , position (p)
        {}
 
-       boost::shared_ptr<Image> image;
+       std::shared_ptr<Image> image;
        Position<int> position;
 
        bool same (PositionImage const & other) const;
index 09902c3a29b5c0a5844b83fe50f932e5039b34e0..667f25b0603f99771f69ba00ac04428c745acaae 100644 (file)
@@ -36,8 +36,8 @@ DCPOMATIC_ENABLE_WARNINGS
 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 dcp::raw_convert;
 
index 7971d4a109a82d0ed8ff741a19a99088b15ffe04..7cd9491fa25181da37a3a570a2f80a1723fefc6c 100644 (file)
 class RawImageProxy : public ImageProxy
 {
 public:
-       explicit RawImageProxy (boost::shared_ptr<Image>);
-       RawImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+       explicit RawImageProxy (std::shared_ptr<Image>);
+       RawImageProxy (std::shared_ptr<cxml::Node> xml, std::shared_ptr<Socket> socket);
 
        Result image (
                boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
                ) const;
 
        void add_metadata (xmlpp::Node *) const;
-       void write_to_socket (boost::shared_ptr<Socket>) const;
-       bool same (boost::shared_ptr<const ImageProxy>) const;
+       void write_to_socket (std::shared_ptr<Socket>) const;
+       bool same (std::shared_ptr<const ImageProxy>) const;
        size_t memory_used () const;
 
 private:
-       boost::shared_ptr<Image> _image;
+       std::shared_ptr<Image> _image;
 };
 
 #endif
index 009b2dc1516aa98df6ee64320a3c7d207f6614f3..110102b7061f0890e5eb0044ff68e13c307f3dce 100644 (file)
@@ -62,13 +62,13 @@ using std::exception;
 using std::map;
 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;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
-using boost::weak_ptr;
+using std::weak_ptr;
 using dcp::ArrayData;
 using dcp::Data;
 using dcp::raw_convert;
index 3d214878b5d71b5de89d07d8bdde31928712b0f9..019917abc9a3f3a8095975e6e61528bf082cb33f 100644 (file)
@@ -27,8 +27,6 @@
 #include "weak_film.h"
 #include <dcp/picture_asset_writer.h>
 #include <dcp/atmos_asset_writer.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 
 namespace dcpomatic {
        class FontData;
@@ -60,23 +58,23 @@ class ReelWriter : public WeakConstFilm
 {
 public:
        ReelWriter (
-               boost::weak_ptr<const Film> film,
+               std::weak_ptr<const Film> film,
                dcpomatic::DCPTimePeriod period,
-               boost::shared_ptr<Job> job,
+               std::shared_ptr<Job> job,
                int reel_index,
                int reel_count,
                bool text_only
                );
 
-       void write (boost::shared_ptr<const dcp::Data> encoded, Frame frame, Eyes eyes);
+       void write (std::shared_ptr<const dcp::Data> encoded, Frame frame, Eyes eyes);
        void fake_write (int size);
        void repeat_write (Frame frame, Eyes eyes);
-       void write (boost::shared_ptr<const AudioBuffers> audio);
+       void write (std::shared_ptr<const AudioBuffers> audio);
        void write (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period);
-       void write (boost::shared_ptr<const dcp::AtmosFrame> atmos, AtmosMetadata metadata);
+       void write (std::shared_ptr<const dcp::AtmosFrame> atmos, AtmosMetadata metadata);
 
        void finish (boost::filesystem::path output_dcp);
-       boost::shared_ptr<dcp::Reel> create_reel (
+       std::shared_ptr<dcp::Reel> create_reel (
                std::list<ReferencedReelAsset> const & refs,
                std::vector<dcpomatic::FontData> const & fonts,
                boost::filesystem::path output_dcp,
@@ -95,7 +93,7 @@ public:
                return _first_nonexistant_frame;
        }
 
-       dcp::FrameInfo read_frame_info (boost::shared_ptr<InfoFileHandle> info, Frame frame, Eyes eyes) const;
+       dcp::FrameInfo read_frame_info (std::shared_ptr<InfoFileHandle> info, Frame frame, Eyes eyes) const;
 
 private:
 
@@ -104,13 +102,13 @@ private:
        void write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const;
        long frame_info_position (Frame frame, Eyes eyes) const;
        Frame check_existing_picture_asset (boost::filesystem::path asset);
-       bool existing_picture_frame_ok (FILE* asset_file, boost::shared_ptr<InfoFileHandle> info_file, Frame frame) const;
-       boost::shared_ptr<dcp::SubtitleAsset> empty_text_asset (TextType type, boost::optional<DCPTextTrack> track) const;
+       bool existing_picture_frame_ok (FILE* asset_file, std::shared_ptr<InfoFileHandle> info_file, Frame frame) const;
+       std::shared_ptr<dcp::SubtitleAsset> empty_text_asset (TextType type, boost::optional<DCPTextTrack> track) const;
 
-       boost::shared_ptr<dcp::ReelPictureAsset> create_reel_picture (boost::shared_ptr<dcp::Reel> reel, std::list<ReferencedReelAsset> const & refs) const;
-       void create_reel_sound (boost::shared_ptr<dcp::Reel> reel, std::list<ReferencedReelAsset> const & refs) const;
+       std::shared_ptr<dcp::ReelPictureAsset> create_reel_picture (std::shared_ptr<dcp::Reel> reel, std::list<ReferencedReelAsset> const & refs) const;
+       void create_reel_sound (std::shared_ptr<dcp::Reel> reel, std::list<ReferencedReelAsset> const & refs) const;
        void create_reel_text (
-               boost::shared_ptr<dcp::Reel> reel,
+               std::shared_ptr<dcp::Reel> reel,
                std::list<ReferencedReelAsset> const & refs,
                std::vector<dcpomatic::FontData> const& fonts,
                int64_t duration,
@@ -118,32 +116,32 @@ private:
                bool ensure_subtitles,
                std::set<DCPTextTrack> ensure_closed_captions
                ) const;
-       void create_reel_markers (boost::shared_ptr<dcp::Reel> reel) const;
+       void create_reel_markers (std::shared_ptr<dcp::Reel> reel) const;
 
        dcpomatic::DCPTimePeriod _period;
        /** the first picture frame index that does not already exist in our MXF */
        int _first_nonexistant_frame;
        /** the data of the last written frame, if there is one */
-       boost::shared_ptr<const dcp::Data> _last_written[EYES_COUNT];
+       std::shared_ptr<const dcp::Data> _last_written[EYES_COUNT];
        /** index of this reel within the DCP (starting from 0) */
        int _reel_index;
        /** number of reels in the DCP */
        int _reel_count;
        boost::optional<std::string> _content_summary;
-       boost::weak_ptr<Job> _job;
+       std::weak_ptr<Job> _job;
        bool _text_only;
 
        dcp::ArrayData _default_font;
 
-       boost::shared_ptr<dcp::PictureAsset> _picture_asset;
+       std::shared_ptr<dcp::PictureAsset> _picture_asset;
        /** picture asset writer, or 0 if we are not writing any picture because we already have one */
-       boost::shared_ptr<dcp::PictureAssetWriter> _picture_asset_writer;
-       boost::shared_ptr<dcp::SoundAsset> _sound_asset;
-       boost::shared_ptr<dcp::SoundAssetWriter> _sound_asset_writer;
-       boost::shared_ptr<dcp::SubtitleAsset> _subtitle_asset;
-       std::map<DCPTextTrack, boost::shared_ptr<dcp::SubtitleAsset> > _closed_caption_assets;
-       boost::shared_ptr<dcp::AtmosAsset> _atmos_asset;
-       boost::shared_ptr<dcp::AtmosAssetWriter> _atmos_asset_writer;
+       std::shared_ptr<dcp::PictureAssetWriter> _picture_asset_writer;
+       std::shared_ptr<dcp::SoundAsset> _sound_asset;
+       std::shared_ptr<dcp::SoundAssetWriter> _sound_asset_writer;
+       std::shared_ptr<dcp::SubtitleAsset> _subtitle_asset;
+       std::map<DCPTextTrack, std::shared_ptr<dcp::SubtitleAsset> > _closed_caption_assets;
+       std::shared_ptr<dcp::AtmosAsset> _atmos_asset;
+       std::shared_ptr<dcp::AtmosAssetWriter> _atmos_asset_writer;
 
        static int const _info_size;
 };
index 0d66155b53fb51e13680bd0c1a07f8e01cecb50f..813d3214864f44c2331ad2711f6441530ed70c07 100644 (file)
 class ReferencedReelAsset
 {
 public:
-       ReferencedReelAsset (boost::shared_ptr<dcp::ReelAsset> asset_, dcpomatic::DCPTimePeriod period_)
+       ReferencedReelAsset (std::shared_ptr<dcp::ReelAsset> asset_, dcpomatic::DCPTimePeriod period_)
                : asset (asset_)
                , period (period_)
        {}
 
        /** The asset */
-       boost::shared_ptr<dcp::ReelAsset> asset;
+       std::shared_ptr<dcp::ReelAsset> asset;
        /** Period that this asset covers in the DCP */
        dcpomatic::DCPTimePeriod period;
 };
index 93043ed066111d2feaf176a2bbbced0ba54b782f..3129c220f8f5f56ee5f7618e7df368f064bb439b 100644 (file)
@@ -48,7 +48,7 @@ using std::max;
 using std::pair;
 using std::cerr;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::algorithm::replace_all;
 using namespace dcpomatic;
index 7187ca30b5c0c28ea2a9d9ff5ddcbd1fc43dde3a..d1c8c7aee9b357be8252f86ba26b7821af634b2a 100644 (file)
@@ -29,5 +29,5 @@ namespace dcpomatic {
 
 std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor);
 std::list<PositionImage> render_text (
-       std::list<StringText>, std::list<boost::shared_ptr<dcpomatic::Font> > fonts, dcp::Size, dcpomatic::DCPTime, int
+       std::list<StringText>, std::list<std::shared_ptr<dcpomatic::Font> > fonts, dcp::Size, dcpomatic::DCPTime, int
        );
index 322c00c136779f009ad1163119bce5496a191dad..60eb7f5052a3e5ca4e47a14f850a83f762f75a05 100644 (file)
@@ -33,7 +33,7 @@ using std::cout;
 using std::pair;
 using std::make_pair;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param in Input sampling rate (Hz)
  *  @param out Output sampling rate (Hz)
index 4b19dc511b891e988c33b4a89b22af8c78da4eb9..1f8200c69366fc2c642f08945991245f6e17d0fe 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "types.h"
 #include <samplerate.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/utility.hpp>
 
 class AudioBuffers;
@@ -31,8 +30,8 @@ public:
        Resampler (int, int, int);
        ~Resampler ();
 
-       boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
-       boost::shared_ptr<const AudioBuffers> flush ();
+       std::shared_ptr<const AudioBuffers> run (std::shared_ptr<const AudioBuffers>);
+       std::shared_ptr<const AudioBuffers> flush ();
        void reset ();
        void set_fast ();
 
index 9bb0f1e555b1a900567cca4527d276b4ba6cf83a..0926ffa9f794bf22353cbce13f6ee998b7c239a3 100644 (file)
@@ -31,7 +31,7 @@
 
 using std::string;
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 
 SCPUploader::SCPUploader (function<void (string)> set_status, function<void (float)> set_progress)
index 544bce9ef76c315bf15c585ccddfff2e67ed9fc6..dea513ab07f3452bbc2dad2879fce35fde4528e6 100644 (file)
@@ -30,7 +30,7 @@
 using std::string;
 using std::vector;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 013afff856627f43bfd477921418c0b6dfde67cc..96b0ce76416c1ab878a8f9c0a5238ba47aa0c1a2 100644 (file)
@@ -54,7 +54,7 @@ public:
        void as_xml (xmlpp::Element *) const;
        std::vector<std::string> trusted_device_thumbprints () const;
 
-       boost::shared_ptr<Cinema> cinema;
+       std::shared_ptr<Cinema> cinema;
        std::vector<TrustedDevice> trusted_devices;
 };
 
@@ -62,9 +62,9 @@ public:
 
 KDMWithMetadataPtr
 kdm_for_screen (
-       boost::shared_ptr<const Film> film,
+       std::shared_ptr<const Film> film,
        boost::filesystem::path cpl,
-       boost::shared_ptr<const dcpomatic::Screen> screen,
+       std::shared_ptr<const dcpomatic::Screen> screen,
        boost::posix_time::ptime valid_from,
        boost::posix_time::ptime valid_to,
        dcp::Formulation formulation,
index 55a1718114a2566c29ec6ad5680c0be174dfcb59..cea35e3c59edb08ca3183935e3247a02a47174e5 100644 (file)
@@ -28,7 +28,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 SendKDMEmailJob::SendKDMEmailJob (
index 1c9d963388a1eefd1451984481f4b05f1df5484b..41d215ba2a79e7fe8fb41b5d42f518fd055f2fc3 100644 (file)
@@ -30,7 +30,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param body Email body */
 SendNotificationEmailJob::SendNotificationEmailJob (string body)
index d27609f0bdd715aac50fff167e7dbbaf40b2c042..143baaa1bdeb89e576319304956ab0df9952e863 100644 (file)
@@ -34,7 +34,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param film Film thta the problem is with, or 0.
  *  @param from Email address to use for From:
index af1a4b26901688efb7a164050d9de09a5acd9bca..4e66cb58b0de5146a00b101644edf514e2fb3089 100644 (file)
@@ -26,7 +26,7 @@ class SendProblemReportJob : public Job
 {
 public:
        SendProblemReportJob (
-               boost::shared_ptr<const Film> film,
+               std::shared_ptr<const Film> film,
                std::string from,
                std::string summary
                );
index 9a633c861064d776de263743058d7c6c481084e7..acb8d08d8e800cbbf429ac1ff924d2ef6c8f75ca 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "i18n.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 Server::Server (int port, int timeout)
        : _terminate (false)
index 6ef2688310ba0ff46edb15c90d8cfdf5531abc90..fbcd7e870ff006204739ba26258c26d019dadeb5 100644 (file)
@@ -43,10 +43,10 @@ protected:
        bool _terminate;
 
 private:
-       virtual void handle (boost::shared_ptr<Socket> socket) = 0;
+       virtual void handle (std::shared_ptr<Socket> socket) = 0;
 
        void start_accept ();
-       void handle_accept (boost::shared_ptr<Socket>, boost::system::error_code const &);
+       void handle_accept (std::shared_ptr<Socket>, boost::system::error_code const &);
 
        boost::asio::io_service _io_service;
        boost::asio::ip::tcp::acceptor _acceptor;
index d913f48ef5301f12fc6e3d0b0d1ca6b77dce48a7..2689fb83778d6e03191399eb5a4166c9b07f50de 100644 (file)
@@ -28,8 +28,8 @@
 
 using std::make_pair;
 using std::string;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 int const Shuffler::_max_size = 64;
index 80754a5e0b2854f7058e29aa8e7cf02bf5de3252..b0a416b80f33edb9957919f6dc82d4cc1e6ef3eb 100644 (file)
@@ -31,11 +31,11 @@ class Shuffler
 public:
        void clear ();
        void flush ();
-       void video (boost::weak_ptr<Piece>, ContentVideo video);
+       void video (std::weak_ptr<Piece>, ContentVideo video);
 
-       boost::signals2::signal<void (boost::weak_ptr<Piece>, ContentVideo)> Video;
+       boost::signals2::signal<void (std::weak_ptr<Piece>, ContentVideo)> Video;
 
-       typedef std::pair<boost::weak_ptr<Piece>, ContentVideo> Store;
+       typedef std::pair<std::weak_ptr<Piece>, ContentVideo> Store;
 
 private:
        friend struct ::shuffler_test5;
index 7692df0cab1680d9800423c629eed32003e6e5db..512fe253c68dc7fa69e364afa406cdcbc8374ca8 100644 (file)
@@ -31,7 +31,7 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::raw_convert;
 
 void
index 3cb1a9a363b5adecd833bce9d7aca8d84ddefc8a..083ce0296e7e379abba817654872668c0e298d98 100644 (file)
@@ -26,8 +26,8 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
 DCPOMATIC_ENABLE_WARNINGS
 
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 SPLEntry::SPLEntry (shared_ptr<Content> content)
 {
index 740082eaf0f9a3d6e0d56bcc222024fe1ec6b8d1..2650371c45003d9631e95edbe6028fc595dd0681 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <libcxml/cxml.h>
 #include <dcp/types.h>
-#include <boost/shared_ptr.hpp>
 
 namespace xmlpp {
        class Element;
@@ -34,11 +33,11 @@ class Content;
 class SPLEntry
 {
 public:
-       SPLEntry (boost::shared_ptr<Content> content);
+       SPLEntry (std::shared_ptr<Content> content);
 
        void as_xml (xmlpp::Element* e);
 
-       boost::shared_ptr<Content> content;
+       std::shared_ptr<Content> content;
        std::string name;
        /** Digest of this content */
        std::string digest;
@@ -48,7 +47,7 @@ public:
        bool encrypted;
 
 private:
-       void construct (boost::shared_ptr<Content> content);
+       void construct (std::shared_ptr<Content> content);
 };
 
 #endif
index ba45787701e0dce0e0bb09b35f3b106aee2c8214..f4942a7b4a325d9b766bcffcb70f4cc810e7ed34 100644 (file)
@@ -24,7 +24,7 @@
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 StdoutLog::StdoutLog ()
 {
index ec3ba7e57260ccccdf212cd8f7ee9dc9fedeabcb..f4335e8e5c1dea356f21994fba6fae4484e08059 100644 (file)
@@ -27,5 +27,5 @@ public:
        explicit StdoutLog (int types);
 
 private:
-       void do_log (boost::shared_ptr<const LogEntry> entry);
+       void do_log (std::shared_ptr<const LogEntry> entry);
 };
index 793619003aab29cfdee6ec0170ef440c4b63ad3d..78c119df63255708977ac6928e4ae2958e60fc28 100644 (file)
@@ -35,7 +35,7 @@
 using std::vector;
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_array;
 using boost::optional;
 using dcp::ArrayData;
index 5ade4a9ec8be3534372db5e9e7157f317bbe9a8c..c6fdac1e8834af1238ab481c2eb31f2e76bdea8c 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "dcpomatic_time.h"
 #include <sub/subtitle.h>
-#include <boost/shared_ptr.hpp>
 #include <vector>
 
 class StringTextFileContent;
@@ -41,7 +40,7 @@ class plain_text_parse_test;
 class StringTextFile
 {
 public:
-       explicit StringTextFile (boost::shared_ptr<const StringTextFileContent>);
+       explicit StringTextFile (std::shared_ptr<const StringTextFileContent>);
 
        boost::optional<dcpomatic::ContentTime> first () const;
        dcpomatic::ContentTime length () const;
index 9a25ef06f00ce6e10532721b88183a9d0ed46d9a..2bf41611073025390db4f28ecc25d422cb68e396 100644 (file)
@@ -32,7 +32,7 @@
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
 using namespace dcpomatic;
index 959190d32a604ee37c0921928c796a49695f9cf5..cf71f8780b94b40fc5ef4b4fc7926eea62b76eef 100644 (file)
@@ -31,19 +31,19 @@ public:
        StringTextFileContent (boost::filesystem::path);
        StringTextFileContent (cxml::ConstNodePtr, int);
 
-       boost::shared_ptr<StringTextFileContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<StringTextFileContent> (Content::shared_from_this ());
+       std::shared_ptr<StringTextFileContent> shared_from_this () {
+               return std::dynamic_pointer_cast<StringTextFileContent> (Content::shared_from_this ());
        }
 
-       boost::shared_ptr<const StringTextFileContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const StringTextFileContent> (Content::shared_from_this ());
+       std::shared_ptr<const StringTextFileContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const StringTextFileContent> (Content::shared_from_this ());
        }
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
        std::string identifier () const;
 
index 691734d7bbf11d1d218efa139dc3eb01b44c6e2d..415851aef4737366127a26ba2ee7e09af75a6069 100644 (file)
@@ -31,9 +31,9 @@ using std::vector;
 using std::string;
 using std::cout;
 using std::max;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 
 StringTextFileDecoder::StringTextFileDecoder (shared_ptr<const Film> film, shared_ptr<const StringTextFileContent> content)
index c57f40d24a7f5c8352f2dc7c6c31338b1bcf4dc7..aa8c80e6e9152341d2f114a0118e4934dcf3fc4e 100644 (file)
@@ -29,7 +29,7 @@ class StringTextFileContent;
 class StringTextFileDecoder : public Decoder, public StringTextFile
 {
 public:
-       StringTextFileDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const StringTextFileContent>);
+       StringTextFileDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const StringTextFileContent>);
 
        void seek (dcpomatic::ContentTime time, bool accurate);
        bool pass ();
index 28eedac0d84d7fba2a780a20e69f282bf292dd8c..49041151f6260ab44a2ad02d7ee2ae162587ddd4 100644 (file)
@@ -29,7 +29,7 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::string;
 using dcp::raw_convert;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 int const SubtitleAnalysis::_current_state_version = 1;
 
index 473d0698b2d6a80a8d59e1b8d00eefbdeff2cb01..1a83c5c67fe868eace79fa82e1ccff390bab3a41 100644 (file)
@@ -26,7 +26,6 @@
 #include <dcp/interop_subtitle_asset.h>
 #include <dcp/raw_convert.h>
 #include <dcp/smpte_subtitle_asset.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/bind/bind.hpp>
 
@@ -36,7 +35,7 @@ using std::string;
 using std::make_pair;
 using std::pair;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 70b92456464e3312be9b667ecce9ab2f3afe4f1e..165d5fcb67792f409b3d8e2060b0fa2a707cc565 100644 (file)
@@ -23,7 +23,6 @@
 #include "dcp_text_track.h"
 #include "encoder.h"
 #include "dcpomatic_time.h"
-#include <boost/weak_ptr.hpp>
 
 namespace dcp {
        class SubtitleAsset;
@@ -37,7 +36,7 @@ class Film;
 class SubtitleEncoder : public Encoder
 {
 public:
-       SubtitleEncoder (boost::shared_ptr<const Film> film, boost::shared_ptr<Job> job, boost::filesystem::path output, std::string intial_name, bool split_reels, bool include_font);
+       SubtitleEncoder (std::shared_ptr<const Film> film, std::shared_ptr<Job> job, boost::filesystem::path output, std::string intial_name, bool split_reels, bool include_font);
 
        void go ();
 
@@ -51,7 +50,7 @@ public:
 private:
        void text (PlayerText subs, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period);
 
-       std::vector<std::pair<boost::shared_ptr<dcp::SubtitleAsset>, boost::filesystem::path> > _assets;
+       std::vector<std::pair<std::shared_ptr<dcp::SubtitleAsset>, boost::filesystem::path> > _assets;
        std::vector<dcpomatic::DCPTimePeriod> _reels;
        bool _split_reels;
        bool _include_font;
index ecd28d1a0ba59ec8420f87537495dee732fb8d03..656aec7ebca226744911839f8b724dfd3af779eb 100644 (file)
@@ -35,8 +35,8 @@ using std::string;
 using std::vector;
 using std::cout;
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using dcp::raw_convert;
 using namespace dcpomatic;
index 1c7eef19a031ff05b0e07d74bd9a8e656dd7af1c..21d09ad12b7329e146b5a1169a5ea934cd26dc16 100644 (file)
@@ -62,13 +62,13 @@ class TextContent : public ContentPart
 {
 public:
        TextContent (Content* parent, TextType type, TextType original_type);
-       TextContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
+       TextContent (Content* parent, std::vector<std::shared_ptr<Content> >);
 
        void as_xml (xmlpp::Node *) const;
        std::string identifier () const;
-       void take_settings_from (boost::shared_ptr<const TextContent> c);
+       void take_settings_from (std::shared_ptr<const TextContent> c);
 
-       void add_font (boost::shared_ptr<dcpomatic::Font> font);
+       void add_font (std::shared_ptr<dcpomatic::Font> font);
 
        void set_use (bool);
        void set_burn (bool);
@@ -122,7 +122,7 @@ public:
                return _y_scale;
        }
 
-       std::list<boost::shared_ptr<dcpomatic::Font> > fonts () const {
+       std::list<std::shared_ptr<dcpomatic::Font> > fonts () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _fonts;
        }
@@ -177,7 +177,7 @@ public:
                return _dcp_track;
        }
 
-       static std::list<boost::shared_ptr<TextContent> > from_xml (Content* parent, cxml::ConstNodePtr, int version);
+       static std::list<std::shared_ptr<TextContent> > from_xml (Content* parent, cxml::ConstNodePtr, int version);
 
 private:
        friend struct ffmpeg_pts_offset_test;
@@ -202,7 +202,7 @@ private:
        double _x_scale;
        /** y scale factor to apply to subtitles */
        double _y_scale;
-       std::list<boost::shared_ptr<dcpomatic::Font> > _fonts;
+       std::list<std::shared_ptr<dcpomatic::Font> > _fonts;
        boost::optional<dcp::Colour> _colour;
        boost::optional<dcp::Effect> _effect;
        boost::optional<dcp::Colour> _effect_colour;
index 8146d33aa416e3d6574c0be4b3898c377ecec2e7..3f6afd710be6d32474a0f3260ddbf9c1b52e1ae5 100644 (file)
@@ -24,7 +24,6 @@
 #include "log.h"
 #include "compose.hpp"
 #include <sub/subtitle.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/foreach.hpp>
 #include <boost/algorithm/string.hpp>
 #include <iostream>
@@ -34,7 +33,7 @@ using std::cout;
 using std::string;
 using std::min;
 using std::max;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::function;
 using namespace dcpomatic;
index fba9b59472b74047db2d45761321582a833faf7e..3fb27b653e4d279084ea73d9885ec08bc3ff2a68 100644 (file)
@@ -40,16 +40,16 @@ class TextDecoder : public DecoderPart
 public:
        TextDecoder (
                Decoder* parent,
-               boost::shared_ptr<const TextContent>,
+               std::shared_ptr<const TextContent>,
                dcpomatic::ContentTime first
                );
 
-       boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const {
+       boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film>) const {
                return _position;
        }
 
-       void emit_bitmap_start (dcpomatic::ContentTime from, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
-       void emit_bitmap (dcpomatic::ContentTimePeriod period, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
+       void emit_bitmap_start (dcpomatic::ContentTime from, std::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
+       void emit_bitmap (dcpomatic::ContentTimePeriod period, std::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
        void emit_plain_start (dcpomatic::ContentTime from, std::list<dcp::SubtitleString> s);
        void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle);
        void emit_plain (dcpomatic::ContentTimePeriod period, std::list<dcp::SubtitleString> s);
@@ -58,7 +58,7 @@ public:
 
        void seek ();
 
-       boost::shared_ptr<const TextContent> content () const {
+       std::shared_ptr<const TextContent> content () const {
                return _content;
        }
 
@@ -67,7 +67,7 @@ public:
        boost::signals2::signal<void (dcpomatic::ContentTime)> Stop;
 
 private:
-       boost::shared_ptr<const TextContent> _content;
+       std::shared_ptr<const TextContent> _content;
        boost::optional<dcpomatic::ContentTime> _position;
 };
 
index 6d73a3673f665c86c1ccb2c15f38431f2c493316..48a2c8114960daa64d69e725becc60ffdd3cbd5c 100644 (file)
@@ -42,9 +42,9 @@ using std::string;
 using std::fixed;
 using std::setprecision;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 /** @param film Film to use */
 TranscodeJob::TranscodeJob (shared_ptr<const Film> film)
index 8240977b9e1de83be715db8e339c9ff0fcbf5058..88f41d6554cf76fb19b28fb8c6692d42503c4c2b 100644 (file)
@@ -23,7 +23,6 @@
  */
 
 #include "job.h"
-#include <boost/shared_ptr.hpp>
 
 class Encoder;
 
@@ -33,7 +32,7 @@ class Encoder;
 class TranscodeJob : public Job
 {
 public:
-       explicit TranscodeJob (boost::shared_ptr<const Film> film);
+       explicit TranscodeJob (std::shared_ptr<const Film> film);
        ~TranscodeJob ();
 
        std::string name () const;
@@ -41,10 +40,10 @@ public:
        void run ();
        std::string status () const;
 
-       void set_encoder (boost::shared_ptr<Encoder> t);
+       void set_encoder (std::shared_ptr<Encoder> t);
 
 private:
        int remaining_time () const;
 
-       boost::shared_ptr<Encoder> _encoder;
+       std::shared_ptr<Encoder> _encoder;
 };
index 5687a5d48b070c261a7559f03a945d8442fc6d6a..6729628cd7800298fbbe4c3ecf87cf8be1fe83f5 100644 (file)
@@ -39,7 +39,7 @@ using std::max;
 using std::min;
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using dcp::raw_convert;
 
 bool operator== (Crop const & a, Crop const & b)
index a10b26a6384fb355704920e43fd2fdf40d60fec5..87b3fc753b36fcc19e3a05fbdadd218184afc56f 100644 (file)
@@ -24,7 +24,6 @@
 #include "position.h"
 #include "rect.h"
 #include <dcp/util.h>
-#include <boost/shared_ptr.hpp>
 #include <vector>
 #include <stdint.h>
 
@@ -86,8 +85,8 @@ namespace xmlpp {
 /** Port on which player listens for play requests */
 #define PLAYER_PLAY_PORT (Config::instance()->server_port_base()+5)
 
-typedef std::vector<boost::shared_ptr<Content> > ContentList;
-typedef std::vector<boost::shared_ptr<FFmpegContent> > FFmpegContentList;
+typedef std::vector<std::shared_ptr<Content> > ContentList;
+typedef std::vector<std::shared_ptr<FFmpegContent> > FFmpegContentList;
 
 typedef int64_t Frame;
 
@@ -190,7 +189,7 @@ struct Crop
 {
        Crop () : left (0), right (0), top (0), bottom (0) {}
        Crop (int l, int r, int t, int b) : left (l), right (r), top (t), bottom (b) {}
-       explicit Crop (boost::shared_ptr<cxml::Node>);
+       explicit Crop (std::shared_ptr<cxml::Node>);
 
        /** Number of pixels to remove from the left-hand side */
        int left;
index c07e0c3d495d336709a4e9c17918b5297d81feae..67a0462510ee91fd9bb35a923b3cae71b3cce956 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::string;
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 3a613fd72e4c1c73daed418b33a0811b3d7a761f..ef9b6b451af7996ea971290ab5feea08b2aaf78a 100644 (file)
@@ -27,7 +27,7 @@
 class UploadJob : public Job
 {
 public:
-       explicit UploadJob (boost::shared_ptr<const Film>);
+       explicit UploadJob (std::shared_ptr<const Film>);
        ~UploadJob ();
 
        std::string name () const;
index bfee5ecbbcd92ab161e88f9e0e5b415fbb1cb0f1..9618e5beb371c239f397aec941c99e5edfa84c25 100644 (file)
@@ -25,7 +25,7 @@
 #include "i18n.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 
 Uploader::Uploader (function<void (string)> set_status, function<void (float)> set_progress)
index 65dc9bf0d86e696213f4680f3e9c9e6d8fe3ba59..f57ed8c4fe6f47034dc9ebe6fea99bbd4ff264d5 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef DCPOMATIC_UPLOADER_H
 #define DCPOMATIC_UPLOADER_H
 
-#include <boost/shared_ptr.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/function.hpp>
 
index fc92b081d2812943f577e72589d06583b3ad40b8..d8cfb4fff67bb9138861c7fce6cd31cd056034f7 100644 (file)
@@ -27,7 +27,7 @@
 using std::string;
 using std::min;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 UpmixerA::UpmixerA (int sampling_rate)
        : _left (0.02, 1900.0 / sampling_rate, 4800.0 / sampling_rate)
index 18569dcfadc957845aead7ca26a722c7214afa43..984b0809591cc0ebb980d1fa5292ae327d3dffe7 100644 (file)
@@ -36,8 +36,8 @@ public:
        std::string name () const;
        std::string id () const;
        int out_channels () const;
-       boost::shared_ptr<AudioProcessor> clone (int) const;
-       boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels);
+       std::shared_ptr<AudioProcessor> clone (int) const;
+       std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers>, int channels);
        void flush ();
        void make_audio_mapping_default (AudioMapping& mapping) const;
        std::vector<NamedChannel> input_names () const;
index dfc9d67d589210052b9ed842eea74f62c01d35fa..317108f41799a6a85f2feff1d4b38fdf7c54a9da 100644 (file)
@@ -27,7 +27,7 @@
 using std::string;
 using std::min;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 UpmixerB::UpmixerB (int sampling_rate)
        : _lfe (0.01, 150.0 / sampling_rate)
index 221be16158c1d913c9aeab169d46d97ac462bd1d..c4c4fd1ac1535d605782b2f2c1fd66299eb95324 100644 (file)
@@ -34,8 +34,8 @@ public:
        std::string name () const;
        std::string id () const;
        int out_channels () const;
-       boost::shared_ptr<AudioProcessor> clone (int) const;
-       boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels);
+       std::shared_ptr<AudioProcessor> clone (int) const;
+       std::shared_ptr<AudioBuffers> run (std::shared_ptr<const AudioBuffers>, int channels);
        void flush ();
        void make_audio_mapping_default (AudioMapping& mapping) const;
        std::vector<NamedChannel> input_names () const;
index 5310e55c9628015dc3b075d0a9076070573c8f0b..45b517c7f4f42d254253b5e7f6b5689787dce870 100644 (file)
@@ -103,7 +103,7 @@ using std::cout;
 using std::bad_alloc;
 using std::set_terminate;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::thread;
 using boost::optional;
 using boost::lexical_cast;
index e23eff07c28575aac81786b067b5edeb0ce6fe96..564e376adc12b82dcf427854b97cd1270520c650 100644 (file)
@@ -32,7 +32,6 @@
 #include <dcp/decrypted_kdm.h>
 #include <dcp/util.h>
 #include <dcp/subtitle_image.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/optional.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/date_time/gregorian/gregorian.hpp>
@@ -105,19 +104,19 @@ extern int stride_round_up (int, int const *, int);
 extern void* wrapped_av_malloc (size_t);
 extern void set_backtrace_file (boost::filesystem::path);
 extern std::map<std::string, std::string> split_get_request (std::string url);
-extern std::string video_asset_filename (boost::shared_ptr<dcp::PictureAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
-extern std::string audio_asset_filename (boost::shared_ptr<dcp::SoundAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
-extern std::string atmos_asset_filename (boost::shared_ptr<dcp::AtmosAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
+extern std::string video_asset_filename (std::shared_ptr<dcp::PictureAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
+extern std::string audio_asset_filename (std::shared_ptr<dcp::SoundAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
+extern std::string atmos_asset_filename (std::shared_ptr<dcp::AtmosAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary);
 extern float relaxed_string_to_float (std::string);
 extern std::string careful_string_filter (std::string);
 extern std::pair<int, int> audio_channel_types (std::list<int> mapped, int channels);
-extern boost::shared_ptr<AudioBuffers> remap (boost::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map);
+extern std::shared_ptr<AudioBuffers> remap (std::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map);
 extern Eyes increment_eyes (Eyes e);
 extern void checked_fread (void* ptr, size_t size, FILE* stream, boost::filesystem::path path);
 extern void checked_fwrite (void const * ptr, size_t size, FILE* stream, boost::filesystem::path path);
 extern size_t utf8_strlen (std::string s);
 extern std::string day_of_week_to_string (boost::gregorian::greg_weekday d);
-extern void emit_subtitle_image (dcpomatic::ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, boost::shared_ptr<TextDecoder> decoder);
+extern void emit_subtitle_image (dcpomatic::ContentTimePeriod period, dcp::SubtitleImage sub, dcp::Size size, std::shared_ptr<TextDecoder> decoder);
 extern bool show_jobs_on_console (bool progress);
 extern void copy_in_bits (boost::filesystem::path from, boost::filesystem::path to, boost::function<void (float)>);
 extern dcp::Size scale_for_display (dcp::Size s, dcp::Size display_container, dcp::Size film_container);
index f6dc1006397fc0242e794d22cf0aa276423a6df8..88e44c4f9be8bfe17761a42f7f4a52a967586717 100644 (file)
@@ -26,7 +26,7 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 2cff5ab6cd1ffdd934efc030b79e7edff0e12c02..ab33b4f559dfd0b180ec19644e3ff3a95ff11c57 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "job.h"
 #include <dcp/verify.h>
-#include <boost/shared_ptr.hpp>
 
 class Content;
 
index 631abc417875e679fc066c49eb31e80c3f1b17b0..4933de71bb0a85fd13acfb670b37fc086f664d62 100644 (file)
@@ -61,9 +61,9 @@ using std::fixed;
 using std::setprecision;
 using std::list;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using dcp::raw_convert;
 using namespace dcpomatic;
 
index b478666bb0ae28462ccac08e371bc27060094791..e5bbb5bab066bdcb495700c12aa4faf2cb90151f 100644 (file)
@@ -27,8 +27,6 @@
 #include "types.h"
 #include "content_part.h"
 #include <boost/thread/mutex.hpp>
-#include <boost/weak_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
 
 class VideoExaminer;
 class Ratio;
@@ -51,16 +49,16 @@ public:
        static int const CUSTOM_SIZE;
 };
 
-class VideoContent : public ContentPart, public boost::enable_shared_from_this<VideoContent>
+class VideoContent : public ContentPart, public std::enable_shared_from_this<VideoContent>
 {
 public:
        explicit VideoContent (Content* parent);
-       VideoContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
+       VideoContent (Content* parent, std::vector<std::shared_ptr<Content> >);
 
        void as_xml (xmlpp::Node *) const;
        std::string technical_summary () const;
        std::string identifier () const;
-       void take_settings_from (boost::shared_ptr<const VideoContent> c);
+       void take_settings_from (std::shared_ptr<const VideoContent> c);
 
        Frame length () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -183,19 +181,19 @@ public:
        dcp::Size size_after_crop () const;
        dcp::Size scaled_size (dcp::Size container_size);
 
-       boost::optional<double> fade (boost::shared_ptr<const Film> film, Frame) const;
+       boost::optional<double> fade (std::shared_ptr<const Film> film, Frame) const;
 
-       std::string processing_description (boost::shared_ptr<const Film> film);
+       std::string processing_description (std::shared_ptr<const Film> film);
 
        void set_length (Frame);
 
-       void take_from_examiner (boost::shared_ptr<VideoExaminer>);
+       void take_from_examiner (std::shared_ptr<VideoExaminer>);
        void add_properties (std::list<UserProperty> &) const;
 
-       void modify_position (boost::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
+       void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
        void modify_trim_start (dcpomatic::ContentTime& pos) const;
 
-       static boost::shared_ptr<VideoContent> from_xml (Content* parent, cxml::ConstNodePtr, int);
+       static std::shared_ptr<VideoContent> from_xml (Content* parent, cxml::ConstNodePtr, int);
 
 private:
 
index 2850b5aa031a939700bad58ff6a0e7ee2b15b614..5bf0672832405125ea9577457fb830475a09c55a 100644 (file)
@@ -34,7 +34,7 @@ using std::cout;
 using std::list;
 using std::max;
 using std::back_inserter;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index dca8eef11482b8a473b800670f270adfc6f42000..5d9a6b8a051a62059f9717771c4585d4eb5aae86 100644 (file)
@@ -31,7 +31,6 @@
 #include "content_video.h"
 #include "decoder_part.h"
 #include <boost/signals2.hpp>
-#include <boost/shared_ptr.hpp>
 
 class VideoContent;
 class ImageProxy;
@@ -45,24 +44,24 @@ class FrameIntervalChecker;
 class VideoDecoder : public DecoderPart
 {
 public:
-       VideoDecoder (Decoder* parent, boost::shared_ptr<const Content> c);
+       VideoDecoder (Decoder* parent, std::shared_ptr<const Content> c);
 
        friend struct video_decoder_fill_test1;
        friend struct video_decoder_fill_test2;
        friend struct ffmpeg_pts_offset_test;
        friend void ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int gaps, int video_length);
 
-       boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const {
+       boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film>) const {
                return _position;
        }
 
        void seek ();
-       void emit (boost::shared_ptr<const Film> film, boost::shared_ptr<const ImageProxy>, Frame frame);
+       void emit (std::shared_ptr<const Film> film, std::shared_ptr<const ImageProxy>, Frame frame);
 
        boost::signals2::signal<void (ContentVideo)> Data;
 
 private:
-       boost::shared_ptr<const Content> _content;
+       std::shared_ptr<const Content> _content;
        /** Frame of last thing to be emitted; only used for 3D */
        boost::optional<Frame> _last_emitted_frame;
        boost::optional<Eyes> _last_emitted_eyes;
index 9b297c87bf63549e6736b1134e168c650bd1c026..b35fc14c11897b9edcde688859f15df37a482054 100644 (file)
@@ -34,7 +34,7 @@ using std::pair;
 using std::vector;
 using std::string;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 VideoFilterGraph::VideoFilterGraph (dcp::Size s, AVPixelFormat p, dcp::Fraction r)
        : _size (s)
index 19cb24e363c4b34c540fa6b8df5dcc2129bcf633..ba0284fb83e7233143e08306030c14e486fedda5 100644 (file)
@@ -26,7 +26,7 @@ public:
        VideoFilterGraph (dcp::Size s, AVPixelFormat p, dcp::Fraction r);
 
        bool can_process (dcp::Size s, AVPixelFormat p) const;
-       std::list<std::pair<boost::shared_ptr<Image>, int64_t> > process (AVFrame * frame);
+       std::list<std::pair<std::shared_ptr<Image>, int64_t> > process (AVFrame * frame);
 
 protected:
        std::string src_parameters () const;
index 0c905a624219eec3ce07527583ac0d6fd6065d4a..a8a301f221bf9b68040a95dec78e079a9df01a9b 100644 (file)
@@ -34,7 +34,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 VideoMXFContent::VideoMXFContent (boost::filesystem::path path)
index dd470335c061209ec3b253dcec553eaa0265fc10..6ec2c0e84414ae83137f40e0ce86447a8ebddd8d 100644 (file)
@@ -26,22 +26,22 @@ public:
        VideoMXFContent (boost::filesystem::path path);
        VideoMXFContent (cxml::ConstNodePtr node, int version);
 
-       boost::shared_ptr<VideoMXFContent> shared_from_this () {
-               return boost::dynamic_pointer_cast<VideoMXFContent> (Content::shared_from_this ());
+       std::shared_ptr<VideoMXFContent> shared_from_this () {
+               return std::dynamic_pointer_cast<VideoMXFContent> (Content::shared_from_this ());
        }
 
-       boost::shared_ptr<const VideoMXFContent> shared_from_this () const {
-               return boost::dynamic_pointer_cast<const VideoMXFContent> (Content::shared_from_this ());
+       std::shared_ptr<const VideoMXFContent> shared_from_this () const {
+               return std::dynamic_pointer_cast<const VideoMXFContent> (Content::shared_from_this ());
        }
 
-       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job> job);
+       void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job> job);
        std::string summary () const;
        std::string technical_summary () const;
        std::string identifier () const;
        void as_xml (xmlpp::Node* node, bool with_paths) const;
-       dcpomatic::DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const;
        dcpomatic::DCPTime approximate_length () const;
-       void add_properties (boost::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
+       void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty>& p) const;
 
        static bool valid_mxf (boost::filesystem::path path);
 };
index 488f837784b4bb57c12bf5d01255e32f7e5030ee..d2b057972ef8209ca27532fb10af3e46607f104b 100644 (file)
@@ -29,7 +29,7 @@
 #include <dcp/stereo_picture_asset_reader.h>
 #include <dcp/exceptions.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 78313df0f332ec42ab06631f188ae737fe66ca3e..ae5d2fb78fbdb2d6d6fdb332c41698c9ef98b0b8 100644 (file)
@@ -28,18 +28,18 @@ class Log;
 class VideoMXFDecoder : public Decoder
 {
 public:
-       VideoMXFDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const VideoMXFContent>);
+       VideoMXFDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const VideoMXFContent>);
 
        bool pass ();
        void seek (dcpomatic::ContentTime t, bool accurate);
 
 private:
 
-       boost::shared_ptr<const VideoMXFContent> _content;
+       std::shared_ptr<const VideoMXFContent> _content;
        /** Time of next thing to return from pass */
        dcpomatic::ContentTime _next;
 
-       boost::shared_ptr<dcp::MonoPictureAssetReader> _mono_reader;
-       boost::shared_ptr<dcp::StereoPictureAssetReader> _stereo_reader;
+       std::shared_ptr<dcp::MonoPictureAssetReader> _mono_reader;
+       std::shared_ptr<dcp::StereoPictureAssetReader> _stereo_reader;
        dcp::Size _size;
 };
index 652dc6941d55f3b39b058dc28ad2a85d6e04c22c..8c7029ea817f3ff255efcd7c6ae621db4d991d14 100644 (file)
@@ -24,7 +24,7 @@
 #include <dcp/mono_picture_asset.h>
 #include <dcp/stereo_picture_asset.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 VideoMXFExaminer::VideoMXFExaminer (shared_ptr<const VideoMXFContent> content)
index ec2933c2742a6801a38a7af8cf010b5b47d89f10..c66774876708c4c19286305a796db69787ddab08 100644 (file)
@@ -29,7 +29,7 @@ namespace dcp {
 class VideoMXFExaminer : public VideoExaminer
 {
 public:
-       explicit VideoMXFExaminer (boost::shared_ptr<const VideoMXFContent>);
+       explicit VideoMXFExaminer (std::shared_ptr<const VideoMXFContent>);
 
        bool has_video () const {
                return true;
@@ -44,5 +44,5 @@ public:
        }
 
 private:
-       boost::shared_ptr<dcp::PictureAsset> _asset;
+       std::shared_ptr<dcp::PictureAsset> _asset;
 };
index 24d904e7e48013b79618754c6761e62de781a2ff..1c08d44b3fff5fdba9a86bcebcc2b227729c0c91 100644 (file)
@@ -30,7 +30,7 @@ using std::make_pair;
 using std::cout;
 using std::pair;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index c7f789cb5d5efb96f68b982491b54296f884b427..832837d9422a59fe1a2cbd063f953ab740dd4a30 100644 (file)
@@ -23,7 +23,6 @@
 #include "types.h"
 #include <boost/noncopyable.hpp>
 #include <boost/thread/mutex.hpp>
-#include <boost/shared_ptr.hpp>
 #include <utility>
 
 
@@ -34,18 +33,18 @@ class PlayerVideo;
 class VideoRingBuffers : public boost::noncopyable
 {
 public:
-       void put (boost::shared_ptr<PlayerVideo> frame, dcpomatic::DCPTime time);
-       std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get ();
+       void put (std::shared_ptr<PlayerVideo> frame, dcpomatic::DCPTime time);
+       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get ();
 
        void clear ();
        Frame size () const;
        bool empty () const;
 
-       void reset_metadata (boost::shared_ptr<const Film> film, dcp::Size player_video_container_size);
+       void reset_metadata (std::shared_ptr<const Film> film, dcp::Size player_video_container_size);
 
        std::pair<size_t, std::string> memory_used () const;
 
 private:
        mutable boost::mutex _mutex;
-       std::list<std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _data;
+       std::list<std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> > _data;
 };
index 731101474fd30799437f16325317a8005dea298b..7d090bd1700cfc0090736815b68614140c2dbc4d 100644 (file)
@@ -24,8 +24,6 @@
 
 
 #include "dcpomatic_assert.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 
 
 class Film;
@@ -35,15 +33,15 @@ template <class T>
 class WeakFilmTemplate
 {
 public:
-       WeakFilmTemplate (boost::weak_ptr<T> f)
+       WeakFilmTemplate (std::weak_ptr<T> f)
                : _film(f)
        {}
 
 protected:
-       boost::weak_ptr<T> _film;
+       std::weak_ptr<T> _film;
 
-       boost::shared_ptr<T> film () const {
-               boost::shared_ptr<T> f = _film.lock();
+       std::shared_ptr<T> film () const {
+               std::shared_ptr<T> f = _film.lock();
                DCPOMATIC_ASSERT (f);
                return f;
        }
index 77a6bb589183de5e159898204617eeab3b7d156c..ff2adeb0082df70b8e804c397126cfc9bf0d2473 100644 (file)
@@ -59,9 +59,9 @@ using std::map;
 using std::min;
 using std::max;
 using std::vector;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index b924337ddfac1cd50bd9a85b88d4b32b1be41a1d..c8a007f78aa5aff7454686d1382c96134c9ede45 100644 (file)
@@ -29,8 +29,6 @@
 #include "dcp_text_track.h"
 #include "weak_film.h"
 #include <dcp/atmos_frame.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/thread.hpp>
 #include <boost/thread/condition.hpp>
 #include <list>
@@ -71,7 +69,7 @@ public:
        } type;
 
        /** encoded data for FULL */
-       boost::shared_ptr<const dcp::Data> encoded;
+       std::shared_ptr<const dcp::Data> encoded;
        /** size of data for FAKE */
        int size;
        /** reel index */
@@ -99,22 +97,22 @@ bool operator== (QueueItem const & a, QueueItem const & b);
 class Writer : public ExceptionStore, public boost::noncopyable, public WeakConstFilm
 {
 public:
-       Writer (boost::weak_ptr<const Film>, boost::weak_ptr<Job>, bool text_only = false);
+       Writer (std::weak_ptr<const Film>, std::weak_ptr<Job>, bool text_only = false);
        ~Writer ();
 
        void start ();
 
        bool can_fake_write (Frame) const;
 
-       void write (boost::shared_ptr<const dcp::Data>, Frame, Eyes);
+       void write (std::shared_ptr<const dcp::Data>, Frame, Eyes);
        void fake_write (Frame, Eyes);
        bool can_repeat (Frame) const;
        void repeat (Frame, Eyes);
-       void write (boost::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
+       void write (std::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
        void write (PlayerText text, TextType type, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod period);
        void write (std::vector<dcpomatic::FontData> fonts);
        void write (ReferencedReelAsset asset);
-       void write (boost::shared_ptr<const dcp::AtmosFrame> atmos, dcpomatic::DCPTime time, AtmosMetadata metadata);
+       void write (std::shared_ptr<const dcp::AtmosFrame> atmos, dcpomatic::DCPTime time, AtmosMetadata metadata);
        void finish (boost::filesystem::path output_dcp);
 
        void set_encoder_threads (int threads);
@@ -128,7 +126,7 @@ private:
        void write_cover_sheet (boost::filesystem::path output_dcp);
        void calculate_referenced_digests (boost::function<void (float)> set_progress);
 
-       boost::weak_ptr<Job> _job;
+       std::weak_ptr<Job> _job;
        std::vector<ReelWriter> _reels;
        std::vector<ReelWriter>::iterator _audio_reel;
        std::vector<ReelWriter>::iterator _subtitle_reel;
index d43b18ef0beba9ee86a64740defd64822d53b1b3..005e152483a496c250e85b986ddd2acb86d36965 100644 (file)
@@ -27,7 +27,7 @@
 
 using std::string;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 Zipper::Zipper (boost::filesystem::path file)
index a981a22b7a18044bb794833a71a4f6d70308e18a..c2b40556c051b04ab9839d8bcae334a4361f5393 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <boost/noncopyable.hpp>
 #include <boost/filesystem.hpp>
-#include <boost/shared_ptr.hpp>
 #include <vector>
 
 class Zipper : public boost::noncopyable
@@ -34,6 +33,6 @@ public:
 
 private:
        struct zip* _zip;
-       std::vector<boost::shared_ptr<std::string> > _store;
+       std::vector<std::shared_ptr<std::string> > _store;
 };
 
index d6699338828bc3eaa816dcbd657cb4ba17258d4d..386e40cb27389800dc9d6e25182888d3c60c9789 100644 (file)
@@ -124,8 +124,8 @@ using std::map;
 using std::make_pair;
 using std::list;
 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::function;
 using boost::is_any_of;
@@ -1509,7 +1509,7 @@ private:
        }
 
        FilmEditor* _film_editor;
-       boost::shared_ptr<FilmViewer> _film_viewer;
+       std::shared_ptr<FilmViewer> _film_viewer;
        StandardControls* _controls;
        VideoWaveformDialog* _video_waveform_dialog;
        SystemInformationDialog* _system_information_dialog;
index 3517de9fef04650675663cf49132c25b710e8c2e..46c66d2c9296ceb4b55337c4c422d3724501fa2c 100644 (file)
@@ -49,10 +49,10 @@ using std::string;
 using std::cout;
 using std::list;
 using std::set;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::thread;
 using boost::scoped_array;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index edf4808a0d9e7a158de7e08187bb71a839aea464..2d70fb578cd1b0629e904a1fb65702b3fa5c6b6f 100644 (file)
@@ -47,9 +47,9 @@ using std::vector;
 using std::pair;
 using std::setw;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 static void
 help (string n)
index 19103fc335b17fbc3bf083be4ab22a9e887184d4..886c1c613b28fe51e683a05afc9d8968aa99d9ec 100644 (file)
@@ -40,9 +40,9 @@ DCPOMATIC_ENABLE_WARNINGS
 using std::exception;
 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;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 90025c5bc5f4702310ee0632a17751c2839e6d31..568dfa56c74c130e1c58c544b6c0ce47863ae764 100644 (file)
@@ -50,8 +50,8 @@ using std::cout;
 using std::cerr;
 using std::list;
 using std::exception;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 
 class SimpleSignalManager : public SignalManager
index d3a28cdc41c917045f64bd5bdbc544bcb5a4b613..ac0bb68df47dce48dc5be26074fcedfafdd5d463 100644 (file)
@@ -51,7 +51,7 @@ using std::string;
 using std::exception;
 using std::cout;
 using std::cerr;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 1d72af4d556d2625b2067efd81d552e87f6a3f7a..874573ce282582d0cc82fcf118f901d12d9f942e 100644 (file)
@@ -71,11 +71,11 @@ using std::string;
 using std::vector;
 using std::pair;
 using std::map;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 using boost::optional;
 using boost::ref;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
@@ -308,7 +308,7 @@ private:
                        list<KDMWithMetadataPtr> kdms;
                        string title;
 
-                       shared_ptr<DKDM> dkdm = boost::dynamic_pointer_cast<DKDM> (dkdm_base);
+                       shared_ptr<DKDM> dkdm = std::dynamic_pointer_cast<DKDM> (dkdm_base);
                        if (dkdm) {
 
                                /* Decrypt the DKDM */
@@ -596,7 +596,7 @@ private:
        ScreensPanel* _screens;
        KDMTimingPanel* _timing;
        wxTreeCtrl* _dkdm;
-       typedef std::map<wxTreeItemId, boost::shared_ptr<DKDMBase> > DKDMMap;
+       typedef std::map<wxTreeItemId, std::shared_ptr<DKDMBase> > DKDMMap;
        DKDMMap _dkdm_id;
        wxButton* _add_dkdm;
        wxButton* _add_dkdm_folder;
index 4da0393b029f9aef6b7b2390481c591ed4e1c018..fef5dea049ed6a564c723d74259257798558e28f 100644 (file)
@@ -42,10 +42,10 @@ using std::cerr;
 using std::list;
 using std::vector;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
@@ -533,8 +533,8 @@ int main (int argc, char* argv[])
        }
 
        if (list_cinemas) {
-               list<boost::shared_ptr<Cinema> > cinemas = Config::instance()->cinemas ();
-               for (list<boost::shared_ptr<Cinema> >::const_iterator i = cinemas.begin(); i != cinemas.end(); ++i) {
+               list<std::shared_ptr<Cinema> > cinemas = Config::instance()->cinemas ();
+               for (list<std::shared_ptr<Cinema> >::const_iterator i = cinemas.begin(); i != cinemas.end(); ++i) {
                        cout << (*i)->name << " (" << Emailer::address_list ((*i)->emails) << ")\n";
                }
                exit (EXIT_SUCCESS);
index f37f77c22534b095c821a598501f76f65b233d1d..5b2c9a56af2b65366cda57673c53d904f6d6e66b 100644 (file)
@@ -84,11 +84,11 @@ using std::cout;
 using std::list;
 using std::exception;
 using std::vector;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::scoped_array;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::thread;
 using boost::bind;
 #if BOOST_VERSION >= 106100
@@ -604,7 +604,7 @@ private:
 
                if (r == wxID_OK) {
                        DCPOMATIC_ASSERT (_film);
-                       shared_ptr<DCPContent> dcp = boost::dynamic_pointer_cast<DCPContent>(_film->content().front());
+                       shared_ptr<DCPContent> dcp = std::dynamic_pointer_cast<DCPContent>(_film->content().front());
                        DCPOMATIC_ASSERT (dcp);
                        dcp->add_ov (wx_to_std(c->GetPath()));
                        JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob (_film, dcp)));
@@ -633,7 +633,7 @@ private:
 
                if (d->ShowModal() == wxID_OK) {
                        DCPOMATIC_ASSERT (_film);
-                       shared_ptr<DCPContent> dcp = boost::dynamic_pointer_cast<DCPContent>(_film->content().front());
+                       shared_ptr<DCPContent> dcp = std::dynamic_pointer_cast<DCPContent>(_film->content().front());
                        DCPOMATIC_ASSERT (dcp);
                        try {
                                if (dcp) {
@@ -690,7 +690,7 @@ private:
 
        void view_cpl (wxCommandEvent& ev)
        {
-               shared_ptr<DCPContent> dcp = boost::dynamic_pointer_cast<DCPContent>(_film->content().front());
+               shared_ptr<DCPContent> dcp = std::dynamic_pointer_cast<DCPContent>(_film->content().front());
                DCPOMATIC_ASSERT (dcp);
                DCPExaminer ex (dcp, true);
                int id = ev.GetId() - ID_view_cpl;
@@ -785,7 +785,7 @@ private:
 
        void tools_verify ()
        {
-               shared_ptr<DCPContent> dcp = boost::dynamic_pointer_cast<DCPContent>(_film->content().front());
+               shared_ptr<DCPContent> dcp = std::dynamic_pointer_cast<DCPContent>(_film->content().front());
                DCPOMATIC_ASSERT (dcp);
 
                shared_ptr<VerifyDCPJob> job (new VerifyDCPJob(dcp->directories()));
@@ -994,7 +994,7 @@ private:
        shared_ptr<FilmViewer> _viewer;
        Controls* _controls;
        SystemInformationDialog* _system_information_dialog;
-       boost::shared_ptr<Film> _film;
+       std::shared_ptr<Film> _film;
        boost::signals2::scoped_connection _config_changed_connection;
        boost::signals2::scoped_connection _examine_job_connection;
        wxMenuItem* _file_add_ov;
index 9027e7e30eb04ae61d7712d61bd9deb970191770..261f0897267d9fc834f4daadf9ab6f832cbc6232 100644 (file)
@@ -45,10 +45,10 @@ using std::map;
 using std::make_pair;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index b51f29c15cd1fc6d31b2155f044499142e9b1ae5..c59fefe8f3170e7a006f47a1cc4c463187417745 100644 (file)
@@ -46,11 +46,11 @@ using std::exception;
 using std::list;
 using std::fixed;
 using std::setprecision;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::thread;
 using boost::bind;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
@@ -206,7 +206,7 @@ private:
 
        wxTextCtrl* _text;
        wxStaticText* _fps;
-       boost::shared_ptr<wxTimer> _timer;
+       std::shared_ptr<wxTimer> _timer;
 };
 
 class TaskBarIcon : public wxTaskBarIcon
index d1bee2dcc8cd3d64bb9b431528a627e4e8a4a7b8..6d7f6aba729ae06113de78f76ae9bbd5ab8dba68 100644 (file)
@@ -46,7 +46,7 @@
 using std::cerr;
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 help (string n)
index b64970f620bf8aa5ac45f842798c22d67350b42f..e3375b98839fc99cdd158ff3d96fa03bfc99518e 100644 (file)
@@ -40,7 +40,7 @@ using std::cout;
 using std::cerr;
 using std::string;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::bind;
 #if BOOST_VERSION >= 106100
index 748bd72d07e545d8b5cf41019278d1902e52022e..1cb167c950f939a34179e9f48c0ad4b6dd17b9d0 100644 (file)
@@ -37,12 +37,12 @@ using std::cout;
 using std::list;
 using std::vector;
 using std::pair;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::bind;
 using boost::optional;
 using boost::const_pointer_cast;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 8f7151b1bab196fd41dd4ac4b8de26278046362e..a94e98e32f4d5b6161a863aa104e721650cb4495 100644 (file)
@@ -25,7 +25,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class AudioPlot;
@@ -35,7 +34,7 @@ class Film;
 class AudioDialog : public wxDialog
 {
 public:
-       AudioDialog (wxWindow* parent, boost::shared_ptr<Film> film, boost::weak_ptr<FilmViewer> viewer, boost::shared_ptr<Content> content = boost::shared_ptr<Content>());
+       AudioDialog (wxWindow* parent, std::shared_ptr<Film> film, std::weak_ptr<FilmViewer> viewer, std::shared_ptr<Content> content = std::shared_ptr<Content>());
 
        bool Show (bool show = true);
 
@@ -52,13 +51,13 @@ private:
        void setup_statistics ();
        void show_or_hide_channel_checkboxes ();
 
-       boost::shared_ptr<AudioAnalysis> _analysis;
-       boost::weak_ptr<Film> _film;
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::shared_ptr<AudioAnalysis> _analysis;
+       std::weak_ptr<Film> _film;
+       std::weak_ptr<FilmViewer> _viewer;
        /** content to analyse, or 0 to analyse all the film's content */
-       boost::weak_ptr<Content> _content;
+       std::weak_ptr<Content> _content;
        int _channels;
-       boost::shared_ptr<const Playlist> _playlist;
+       std::shared_ptr<const Playlist> _playlist;
        wxStaticText* _cursor;
        AudioPlot* _plot;
        wxStaticText* _sample_peak;
index 01cd7738b0922215f2fff415cf2060587c514341..04a468416a75cc8ede8977621b14b1cd464e5c90 100644 (file)
@@ -47,7 +47,7 @@ using std::max;
 using std::vector;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 2809ce44a2faa7f3316da93aff7e96c9ef2e7060..bf73798dac5779f4000346b819133afc97b721de 100644 (file)
@@ -43,8 +43,8 @@ using std::cout;
 using std::string;
 using std::list;
 using std::pair;
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index f7161f10a8af39c9fb5729d7668f6b5f6c50d957..aee352a55952649c1282cd9ee15265e0a4c164fe 100644 (file)
@@ -38,7 +38,7 @@ public:
        void film_changed (Film::Property);
        void film_content_changed (int);
        void content_selection_changed ();
-       void set_film (boost::shared_ptr<Film>);
+       void set_film (std::shared_ptr<Film>);
 
 private:
        void show_clicked ();
index 74c10348e6bdb2fe9534988de1aec9cb632f43d4..682abe4324c47918877f6cfd661c1f9cfb277292 100644 (file)
@@ -37,8 +37,8 @@ using std::min;
 using std::map;
 using boost::bind;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 989f15edc04546e52f3decbb7e1c2a482d223d6a..27d76b6db3ce1fb235a5df7b1253e41b5d7583e3 100644 (file)
@@ -24,7 +24,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <vector>
 
@@ -34,9 +33,9 @@ class FilmViewer;
 class AudioPlot : public wxPanel
 {
 public:
-       explicit AudioPlot (wxWindow *, boost::weak_ptr<FilmViewer> viewer);
+       explicit AudioPlot (wxWindow *, std::weak_ptr<FilmViewer> viewer);
 
-       void set_analysis (boost::shared_ptr<AudioAnalysis>);
+       void set_analysis (std::shared_ptr<AudioAnalysis>);
        void set_channel_visible (int c, bool v);
        void set_type_visible (int t, bool v);
        void set_smoothing (int);
@@ -79,8 +78,8 @@ private:
        void mouse_leave (wxMouseEvent& ev);
        void search (std::map<int, PointList> const & search, wxMouseEvent const & ev, double& min_dist, Point& min_point) const;
 
-       boost::weak_ptr<FilmViewer> _viewer;
-       boost::shared_ptr<AudioAnalysis> _analysis;
+       std::weak_ptr<FilmViewer> _viewer;
+       std::shared_ptr<AudioAnalysis> _analysis;
        bool _channel_visible[MAX_DCP_AUDIO_CHANNELS];
        bool _type_visible[AudioPoint::COUNT];
        int _smoothing;
index 038e8b22881a1c7ceeb11bdc732b82978f70a553..07e330c4ca34be4d98f5aff842529c3382165438 100644 (file)
@@ -25,7 +25,7 @@
 #include <wx/button.h>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BatchJobView::BatchJobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table)
        : JobView (job, parent, container, table)
index 40dceff31bf8d11296d995b8119a8e7b5ca5921c..688e6c374783cfb0bee77f7020679fa5654eb70a 100644 (file)
@@ -23,7 +23,7 @@
 class BatchJobView : public JobView
 {
 public:
-       BatchJobView (boost::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
+       BatchJobView (std::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
 
 private:
        int insert_position () const;
index 7411fa15377fbcd3a96179477128d21ffa7b958d..71fc1527257a92f6e6312b45f592b18acde12c9a 100644 (file)
@@ -32,8 +32,8 @@ using std::max;
 using std::cout;
 using std::pair;
 using std::make_pair;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 4117de2639a55d1e5fa64e64b29d242b0c6ea8b4..1f0e450ff3203bc632ec2601d898af05a57963c6 100644 (file)
@@ -35,8 +35,8 @@ public:
        explicit ClosedCaptionsDialog (wxWindow* parent, FilmViewer* viewer);
 
        void clear ();
-       void update_tracks (boost::shared_ptr<const Film> film);
-       void set_butler (boost::weak_ptr<Butler>);
+       void update_tracks (std::shared_ptr<const Film> film);
+       void set_butler (std::weak_ptr<Butler>);
 
 private:
        void shown (wxShowEvent);
@@ -51,6 +51,6 @@ private:
        bool _current_in_lines;
        std::vector<wxString> _lines;
        std::vector<DCPTextTrack> _tracks;
-       boost::weak_ptr<Butler> _butler;
+       std::weak_ptr<Butler> _butler;
        wxTimer _timer;
 };
index 3c59dbeedc336178695562604e9ecd7774ddb5ad..46bf77a8ec7ccb80455771af747ab95c062951e4 100644 (file)
@@ -34,8 +34,8 @@
 
 using std::string;
 using std::cout;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::bind;
 using dcp::locale_convert;
 
index 2319754f04827aa51a196f8e3c76705d1d1ec5db..0d341ba73e90f3dfe79ebc8ad729b7f9bbcbbba5 100644 (file)
@@ -34,7 +34,7 @@ using std::make_pair;
 using std::map;
 using boost::bind;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index a698b252a89d1fd41864fe859a30e7e5869c92e3..b2ebbe605b16eeab20d482d82c17dd85a7fb3618 100644 (file)
@@ -114,8 +114,8 @@ public:
                wxWindow* parent,
                wxString title,
                int border,
-               boost::function<void (boost::shared_ptr<dcp::CertificateChain>)> set,
-               boost::function<boost::shared_ptr<const dcp::CertificateChain> (void)> get,
+               boost::function<void (std::shared_ptr<dcp::CertificateChain>)> set,
+               boost::function<std::shared_ptr<const dcp::CertificateChain> (void)> get,
                boost::function<bool (void)> nag_alter
                );
 
@@ -145,8 +145,8 @@ private:
        wxStaticText* _private_key_bad;
        wxSizer* _sizer;
        wxBoxSizer* _button_sizer;
-       boost::function<void (boost::shared_ptr<dcp::CertificateChain>)> _set;
-       boost::function<boost::shared_ptr<const dcp::CertificateChain> (void)> _get;
+       boost::function<void (std::shared_ptr<dcp::CertificateChain>)> _set;
+       boost::function<std::shared_ptr<const dcp::CertificateChain> (void)> _get;
        boost::function<bool (void)> _nag_alter;
 };
 
index d170032a4798be99b6bd47da71419dfc29624994..a33ffed90ee8ae50012da13366a56fa7b726c4b9 100644 (file)
@@ -42,9 +42,9 @@ DCPOMATIC_ENABLE_WARNINGS
 using std::string;
 using std::vector;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index b01669bac1e44c0cb4d16b6158aa543152fa6e2b..6eaaa2e2da0dc7efc2fd5e83b9b09bf79681ff25 100644 (file)
@@ -23,7 +23,7 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <vector>
 
 
@@ -34,7 +34,7 @@ class Filter;
 class ContentAdvancedDialog : public wxDialog
 {
 public:
-       ContentAdvancedDialog (wxWindow* parent, boost::shared_ptr<Content> content);
+       ContentAdvancedDialog (wxWindow* parent, std::shared_ptr<Content> content);
 
 private:
        void ignore_video_changed (wxCommandEvent& ev);
@@ -44,7 +44,7 @@ private:
        void set_video_frame_rate ();
        void video_frame_rate_changed ();
 
-       boost::shared_ptr<Content> _content;
+       std::shared_ptr<Content> _content;
 
        wxStaticText* _filters;
        wxButton* _filters_button;
index 3c3b1ed3ada6496385e524da5f0689b94d1a4fae..57c6afeb3eaa3166f13aa8104e846a77860f8916 100644 (file)
@@ -50,9 +50,9 @@ using std::cout;
 using std::vector;
 using std::exception;
 using std::list;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
@@ -357,9 +357,9 @@ ContentMenu::find_missing ()
                        bind (
                                &ContentMenu::maybe_found_missing,
                                this,
-                               boost::weak_ptr<Job> (j),
-                               boost::weak_ptr<Content> (_content.front ()),
-                               boost::weak_ptr<Content> (i)
+                               std::weak_ptr<Job> (j),
+                               std::weak_ptr<Content> (_content.front ()),
+                               std::weak_ptr<Content> (i)
                                )
                        );
 
index 756c1675a7c111a9c6120023142aea168a2425aa..7743d0712b7bb27008378ea60cac0c2977ab3601 100644 (file)
@@ -24,8 +24,7 @@
 #include "timeline_content_view.h"
 #include "lib/types.h"
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
+#include <memory>
 
 class Film;
 class Job;
@@ -36,7 +35,7 @@ class ContentMenu : public boost::noncopyable
 public:
        explicit ContentMenu (wxWindow* p);
 
-       void popup (boost::weak_ptr<Film>, ContentList, TimelineContentViewList, wxPoint);
+       void popup (std::weak_ptr<Film>, ContentList, TimelineContentViewList, wxPoint);
 
 private:
        void repeat ();
@@ -49,13 +48,13 @@ private:
        void ov ();
        void set_dcp_settings ();
        void remove ();
-       void maybe_found_missing (boost::weak_ptr<Job>, boost::weak_ptr<Content>, boost::weak_ptr<Content>);
+       void maybe_found_missing (std::weak_ptr<Job>, std::weak_ptr<Content>, std::weak_ptr<Content>);
        void cpl_selected (wxCommandEvent& ev);
 
        wxMenu* _menu;
        wxMenu* _cpl_menu;
        /** Film that we are working with; set up by popup() */
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        wxWindow* _parent;
        bool _pop_up_open;
        ContentList _content;
index 1a15d241d774871631c50fc42fd6d57a64d7c031..7114e8337fb6b6298ef9aada0ffe0b65d9c218e3 100644 (file)
@@ -57,9 +57,9 @@ using std::cout;
 using std::vector;
 using std::max;
 using std::exception;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
index df5c58ebd0450ebaaa7240cb0bab3839ffcfce1b..6a9ef3f4a561724cc442b2931c4ceaaa7a12dcff 100644 (file)
@@ -22,7 +22,6 @@
 #include "lib/types.h"
 #include "lib/film.h"
 #include <wx/splitter.h>
-#include <boost/shared_ptr.hpp>
 #include <list>
 
 class wxNotebook;
@@ -66,15 +65,15 @@ private:
 class ContentPanel : public boost::noncopyable
 {
 public:
-       ContentPanel (wxNotebook *, boost::shared_ptr<Film>, boost::weak_ptr<FilmViewer> viewer);
+       ContentPanel (wxNotebook *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer);
 
-       boost::shared_ptr<Film> film () const {
+       std::shared_ptr<Film> film () const {
                return _film;
        }
 
-       void set_film (boost::shared_ptr<Film>);
+       void set_film (std::shared_ptr<Film>);
        void set_general_sensitivity (bool s);
-       void set_selection (boost::weak_ptr<Content>);
+       void set_selection (std::weak_ptr<Content>);
        void set_selection (ContentList cl);
 
        void film_changed (Film::Property p);
@@ -100,7 +99,7 @@ public:
        bool remove_clicked (bool hotkey);
        void timeline_clicked ();
 
-       boost::weak_ptr<FilmViewer> film_viewer () const {
+       std::weak_ptr<FilmViewer> film_viewer () const {
                return _film_viewer;
        }
 
@@ -144,8 +143,8 @@ private:
        wxNotebook* _parent;
        wxWindow* _last_selected_tab;
 
-       boost::shared_ptr<Film> _film;
-       boost::weak_ptr<FilmViewer> _film_viewer;
+       std::shared_ptr<Film> _film;
+       std::weak_ptr<FilmViewer> _film_viewer;
        bool _generally_sensitive;
        bool _ignore_deselect;
        bool _no_check_selection;
index 7dcc6f8f1060ce4c5636bf7195facb0f2d6db903..bf1f67ace40c5b8fc0649b06a8fe52ea1b74dc3f 100644 (file)
@@ -31,8 +31,8 @@ using std::string;
 using std::list;
 using std::pair;
 using std::map;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<const Film> film, shared_ptr<Content> content)
        : TableDialog (parent, _("Content Properties"), 2, 1, false)
index 5d0cd4630272867c0b4acbecaf0586e7f69e746e..9faccb4b74ab3ce9fc93a0b53855e4d6b13e0dbe 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "table_dialog.h"
 #include "lib/user_property.h"
-#include <boost/shared_ptr.hpp>
 #include <list>
 #include <map>
 
@@ -31,7 +30,7 @@ class UserProperty;
 class ContentPropertiesDialog : public TableDialog
 {
 public:
-       ContentPropertiesDialog (wxWindow* parent, boost::shared_ptr<const Film> film, boost::shared_ptr<Content> content);
+       ContentPropertiesDialog (wxWindow* parent, std::shared_ptr<const Film> film, std::shared_ptr<Content> content);
 
 private:
        void maybe_add_group (std::map<UserProperty::Category, std::list<UserProperty> > const & groups, UserProperty::Category category);
index 1a92c0dcd3b1e03955bb33d6daca342b9bda9ab4..b4ba5517562588f2282b2b8d7c244fff63e26d45 100644 (file)
@@ -29,7 +29,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index cb59f38ddf45346a5c04780d384d801fe8ccc521..08c61c25f84c617ff30fab855ef7cd10ef0cd4d9 100644 (file)
@@ -26,7 +26,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 
 class ContentPanel;
 class Content;
@@ -50,7 +49,7 @@ public:
 
 protected:
 
-       void setup_refer_button (wxCheckBox* button, wxStaticText* note, boost::shared_ptr<DCPContent> dcp, bool can_reference, wxString cannot) const;
+       void setup_refer_button (wxCheckBox* button, wxStaticText* note, std::shared_ptr<DCPContent> dcp, bool can_reference, wxString cannot) const;
        virtual void add_to_grid () = 0;
 
        ContentPanel* _parent;
index da3ca6b6b781628c5541ec8c6a59a3368543e70c..67a9a3fa53c90b4faa1395ef5200c1701bdba14f 100644 (file)
 using std::string;
 using std::cout;
 using std::list;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 
 ContentView::ContentView (wxWindow* parent)
index 3f4a65ab1bc1e58f1258ea6a6de219ee2e7c17a4..0bbfffaa76418f331f1ee699d7d6afb3d21fe508 100644 (file)
@@ -23,8 +23,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/listctrl.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <vector>
 
 class Content;
@@ -35,14 +33,14 @@ class ContentView : public wxListCtrl, public ContentStore
 public:
        ContentView (wxWindow* parent);
 
-       boost::shared_ptr<Content> selected () const;
+       std::shared_ptr<Content> selected () const;
        void update ();
 
-       boost::shared_ptr<Content> get (std::string digest) const;
+       std::shared_ptr<Content> get (std::string digest) const;
 
 private:
-       void add (boost::shared_ptr<Content> content);
+       void add (std::shared_ptr<Content> content);
 
-       boost::weak_ptr<Film> _film;
-       std::vector<boost::shared_ptr<Content> > _content;
+       std::weak_ptr<Film> _film;
+       std::vector<std::shared_ptr<Content> > _content;
 };
index 6505d08da75cc1344b5cede040035fdfa9f9df9b..d38609cb4b8c1d0e408a00406bf34e705548eead 100644 (file)
@@ -60,7 +60,7 @@ public:
                wxWindow* parent,
                T* wrapped,
                int property,
-               boost::function<boost::shared_ptr<S> (Content*)> part,
+               boost::function<std::shared_ptr<S> (Content*)> part,
                boost::function<U (S*)> model_getter,
                boost::function<void (S*, U)> model_setter,
                boost::function<void ()> view_changed,
@@ -90,7 +90,7 @@ public:
                return _wrapped;
        }
 
-       typedef std::vector<boost::shared_ptr<Content> > List;
+       typedef std::vector<std::shared_ptr<Content> > List;
 
        /** Set the content that this control is working on (i.e. the selected content) */
        void set_content (List content)
@@ -214,7 +214,7 @@ private:
        wxButton* _button;
        List _content;
        int _property;
-       boost::function<boost::shared_ptr<S> (Content *)> _part;
+       boost::function<std::shared_ptr<S> (Content *)> _part;
        boost::function<U (S*)> _model_getter;
        boost::function<void (S*, U)> _model_setter;
        boost::function<void ()> _view_changed;
@@ -238,7 +238,7 @@ public:
                wxWindow* parent,
                wxSpinCtrl* wrapped,
                int property,
-               boost::function<boost::shared_ptr<S> (Content *)> part,
+               boost::function<std::shared_ptr<S> (Content *)> part,
                boost::function<int (S*)> getter,
                boost::function<void (S*, int)> setter,
                boost::function<void ()> view_changed = boost::function<void ()>()
@@ -266,7 +266,7 @@ public:
                wxWindow* parent,
                wxSpinCtrlDouble* wrapped,
                int property,
-               boost::function<boost::shared_ptr<S> (Content *)> part,
+               boost::function<std::shared_ptr<S> (Content *)> part,
                boost::function<double (S*)> getter,
                boost::function<void (S*, double)> setter,
                boost::function<void ()> view_changed = boost::function<void ()>()
@@ -294,7 +294,7 @@ public:
                wxWindow* parent,
                wxChoice* wrapped,
                int property,
-               boost::function<boost::shared_ptr<S> (Content *)> part,
+               boost::function<std::shared_ptr<S> (Content *)> part,
                boost::function<U (S*)> getter,
                boost::function<void (S*, U)> setter,
                boost::function<U (int)> view_to_model,
index 1a03ba568bd320a31eb2f0ac9cbe224750cb4c85..5364e16148333364ecbc5851b2a16cc1fc165782 100644 (file)
@@ -49,9 +49,9 @@ using std::cout;
 using std::make_pair;
 using std::exception;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 1d6273af68088172e9e9702ee1c496a1a5e9d4a5..a2c80b8090bdd9c9d30e700bea47eeef89a4e8aa 100644 (file)
@@ -28,7 +28,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class FilmViewer;
@@ -49,18 +48,18 @@ class Controls : public wxPanel
 public:
        Controls (
                wxWindow* parent,
-               boost::shared_ptr<FilmViewer>,
+               std::shared_ptr<FilmViewer>,
                bool editor_controls = true
                );
 
        virtual void log (wxString) {}
-       virtual void set_film (boost::shared_ptr<Film> film);
+       virtual void set_film (std::shared_ptr<Film> film);
 
        virtual void play () {};
        virtual void stop () {};
        void seek (int slider);
 
-       boost::shared_ptr<Film> film () const;
+       std::shared_ptr<Film> film () const;
        void back_frame ();
        void forward_frame ();
 
@@ -72,9 +71,9 @@ protected:
 
        wxSizer* _v_sizer;
        wxBoxSizer* _button_sizer;
-       boost::shared_ptr<Film> _film;
+       std::shared_ptr<Film> _film;
        wxSlider* _slider;
-       boost::shared_ptr<FilmViewer> _viewer;
+       std::shared_ptr<FilmViewer> _viewer;
        boost::optional<std::string> _active_job;
 
 private:
@@ -91,13 +90,13 @@ private:
        void timecode_clicked ();
        void active_jobs_changed (boost::optional<std::string>);
        dcpomatic::DCPTime nudge_amount (wxKeyboardState& ev);
-       void image_changed (boost::weak_ptr<PlayerVideo>);
+       void image_changed (std::weak_ptr<PlayerVideo>);
        void outline_content_changed ();
        void eye_changed ();
        void update_position ();
        void film_change (ChangeType, Film::Property);
 
-       typedef std::pair<boost::shared_ptr<dcp::CPL>, boost::filesystem::path> CPL;
+       typedef std::pair<std::shared_ptr<dcp::CPL>, boost::filesystem::path> CPL;
 
        bool _slider_being_moved;
 
index 1687704ec1a8d9fb5c6e7732874872f74d837c2c..972b30baca63c5088eb5f526f4913a04a1111952 100644 (file)
@@ -58,8 +58,8 @@ using std::pair;
 using std::max;
 using std::make_pair;
 using boost::lexical_cast;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 465104c74bfa85c254b4a4669a5cd6bbbeb0fab4..cce97a2dc314ee9b743fb3386a9721c43d45ede0 100644 (file)
@@ -19,7 +19,6 @@
 */
 
 #include "lib/config.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/noncopyable.hpp>
 
 class wxNotebook;
@@ -45,9 +44,9 @@ class Ratio;
 class DCPPanel : public boost::noncopyable
 {
 public:
-       DCPPanel (wxNotebook *, boost::shared_ptr<Film>, boost::weak_ptr<FilmViewer> viewer);
+       DCPPanel (wxNotebook *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer);
 
-       void set_film (boost::shared_ptr<Film>);
+       void set_film (std::shared_ptr<Film>);
        void set_general_sensitivity (bool);
 
        void film_changed (int);
@@ -152,7 +151,7 @@ private:
        InteropMetadataDialog* _interop_metadata_dialog;
        SMPTEMetadataDialog* _smpte_metadata_dialog;
 
-       boost::shared_ptr<Film> _film;
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::shared_ptr<Film> _film;
+       std::weak_ptr<FilmViewer> _viewer;
        bool _generally_sensitive;
 };
index 5b89d28fafecdbf394c10c9d9c33c76c03a97003..fe97cf642bafc7949fefa9510c7d3c5d6bc5de66 100644 (file)
@@ -46,7 +46,7 @@ using std::cout;
 using std::vector;
 using std::make_pair;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index f6f29f852778b64e380970d5de8251b6fa3cdf4d..4235de511b5e5cb20665aca8866a220ca38c6451 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "wx_util.h"
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
 #include <map>
 
 class Film;
@@ -34,14 +33,14 @@ struct CPLSummary;
 class DKDMDialog : public wxDialog
 {
 public:
-       DKDMDialog (wxWindow *, boost::shared_ptr<const Film> film);
+       DKDMDialog (wxWindow *, std::shared_ptr<const Film> film);
 
 private:
        void setup_sensitivity ();
        void make_clicked ();
        bool confirm_overwrite (boost::filesystem::path path);
 
-       boost::weak_ptr<const Film> _film;
+       std::weak_ptr<const Film> _film;
        RecipientsPanel* _recipients;
        KDMTimingPanel* _timing;
        KDMCPLPanel* _cpl;
index d8645ff9713d5e8a24d51aded011e87fb1ac4f23..762ed7b7e71e07aef8d7019bbddd110cefe92cba 100644 (file)
@@ -44,7 +44,7 @@ using std::string;
 using std::list;
 using std::exception;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 
 
index 4f0ad12b6060e07aac17828f271f8d4eea92cf97..57a9418188dc65939532549975dfdb9ea10925a4 100644 (file)
@@ -41,7 +41,7 @@ public:
 
        boost::filesystem::path directory () const;
 
-       std::pair<boost::shared_ptr<Job>, int> make (
+       std::pair<std::shared_ptr<Job>, int> make (
                std::list<KDMWithMetadataPtr > kdms,
                std::string name,
                boost::function<bool (boost::filesystem::path)> confirm_overwrite
index 854a130c6e541e185499dcfd7a6d035d4ca86817..4d3ae4fe135a54a26dd3f572d230962a82a57a0e 100644 (file)
@@ -22,7 +22,7 @@
 #include "wx_util.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 EmailDialog::EmailDialog (wxWindow* parent)
index c0d383821b6da0c5cf81fbd5ec6ea36770f771d7..ce91c3cc49565a06e288c27dfca0f3f13c891983 100644 (file)
@@ -38,8 +38,8 @@
 using std::cout;
 using std::string;
 using std::list;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 0382ef9d448463eeccde68ea3e7802d910ac95a9..a5232d2e54681bfb330f32c68c1694d6cec316ec 100644 (file)
@@ -41,9 +41,9 @@ class FilmViewer;
 class FilmEditor : public wxPanel
 {
 public:
-       FilmEditor (wxWindow *, boost::weak_ptr<FilmViewer> viewer);
+       FilmEditor (wxWindow *, std::weak_ptr<FilmViewer> viewer);
 
-       void set_film (boost::shared_ptr<Film>);
+       void set_film (std::shared_ptr<Film>);
        void first_shown ();
 
        boost::signals2::signal<void (boost::filesystem::path)> FileChanged;
@@ -55,7 +55,7 @@ public:
                return _content_panel;
        }
 
-       boost::shared_ptr<Film> film () const {
+       std::shared_ptr<Film> film () const {
                return _film;
        }
 
@@ -73,5 +73,5 @@ private:
        DCPPanel* _dcp_panel;
 
        /** The film we are editing */
-       boost::shared_ptr<Film> _film;
+       std::shared_ptr<Film> _film;
 };
index 920ca3a10bce5c874c4b420056fca527347f8f32..cc25ccdd5fbbd152f74d9ff6fecf087bcbb2a08f 100644 (file)
@@ -65,9 +65,9 @@ using std::list;
 using std::bad_alloc;
 using std::make_pair;
 using std::exception;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 15d6bfaf5b2f648d50f56fe3ce371640e997d0a4..909bf0ac70b262f881e3694ba13e66049d2d12ab 100644 (file)
@@ -63,13 +63,13 @@ public:
 
        void show_closed_captions ();
 
-       void set_film (boost::shared_ptr<Film>);
-       boost::shared_ptr<Film> film () const {
+       void set_film (std::shared_ptr<Film>);
+       std::shared_ptr<Film> film () const {
                return _film;
        }
 
        void seek (dcpomatic::DCPTime t, bool accurate);
-       void seek (boost::shared_ptr<Content> content, dcpomatic::ContentTime p, bool accurate);
+       void seek (std::shared_ptr<Content> content, dcpomatic::ContentTime p, bool accurate);
        void seek_by (dcpomatic::DCPTime by, bool accurate);
        /** @return our `playhead' position; this may not lie exactly on a frame boundary */
        dcpomatic::DCPTime position () const {
@@ -122,20 +122,20 @@ public:
        bool pad_black () const {
                return _pad_black;
        }
-       boost::shared_ptr<Butler> butler () const {
+       std::shared_ptr<Butler> butler () const {
                return _butler;
        }
        ClosedCaptionsDialog* closed_captions_dialog () const {
                return _closed_captions_dialog;
        }
        void finished ();
-       void image_changed (boost::shared_ptr<PlayerVideo> video);
+       void image_changed (std::shared_ptr<PlayerVideo> video);
 
        bool pending_idle_get () const {
                return _idle_get;
        }
 
-       boost::signals2::signal<void (boost::shared_ptr<PlayerVideo>)> ImageChanged;
+       boost::signals2::signal<void (std::shared_ptr<PlayerVideo>)> ImageChanged;
        boost::signals2::signal<void (dcpomatic::DCPTime)> Started;
        boost::signals2::signal<void (dcpomatic::DCPTime)> Stopped;
        /** While playing back we reached the end of the film (emitted from GUI thread) */
@@ -162,8 +162,8 @@ private:
 
        bool quick_refresh ();
 
-       boost::shared_ptr<Film> _film;
-       boost::shared_ptr<Player> _player;
+       std::shared_ptr<Film> _film;
+       std::shared_ptr<Player> _player;
 
        VideoView* _video_view;
        bool _coalesce_player_changes;
@@ -177,7 +177,7 @@ private:
        unsigned int _audio_block_size;
        bool _playing;
        int _suspended;
-       boost::shared_ptr<Butler> _butler;
+       std::shared_ptr<Butler> _butler;
 
        std::list<Frame> _latency_history;
        /** Mutex to protect _latency_history */
index 66f8ab0e486dfab24dde0c3f6c36c1aa49933ed9..8ff6cf13e66765f143a607fd160153b4f7c8c383 100644 (file)
@@ -32,7 +32,7 @@
 using std::list;
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 FontsDialog::FontsDialog (wxWindow* parent, shared_ptr<Content> content, shared_ptr<TextContent> caption)
index 260e74c3dcd58715f79e1b8f762446fdf1a4e773..0ef3658cfd7f572f32fc0bc96398bbd64b8cd739 100644 (file)
@@ -23,8 +23,6 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/listctrl.h>
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/filesystem.hpp>
 
 class Content;
@@ -33,7 +31,7 @@ class TextContent;
 class FontsDialog : public wxDialog
 {
 public:
-       FontsDialog (wxWindow* parent, boost::shared_ptr<Content>, boost::shared_ptr<TextContent> caption);
+       FontsDialog (wxWindow* parent, std::shared_ptr<Content>, std::shared_ptr<TextContent> caption);
 
 private:
        void setup ();
@@ -41,8 +39,8 @@ private:
        void selection_changed ();
        void edit_clicked ();
 
-       boost::weak_ptr<Content> _content;
-       boost::weak_ptr<TextContent> _caption;
+       std::weak_ptr<Content> _content;
+       std::weak_ptr<TextContent> _caption;
        wxListCtrl* _fonts;
        wxButton* _edit;
 };
index c41236096c9466d2896b23cbe0e202e58297bca3..f376d96820661d5246526821fe0fe2d46bd32ed0 100644 (file)
@@ -68,7 +68,7 @@ using std::pair;
 using std::make_pair;
 using std::map;
 using boost::bind;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index 0d79a75627973d9f44d03515ecbb490eb0d93969..969264c2710d5656a22303c07c5b38f69660b23b 100644 (file)
@@ -49,7 +49,7 @@
 #endif
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 675b324fc4d4095c9df248bea2a859edbfbb6c67..d8ee65da63e04d63fc572676d6ff7b9a2c8b24f8 100644 (file)
@@ -28,7 +28,6 @@ DCPOMATIC_DISABLE_WARNINGS
 DCPOMATIC_ENABLE_WARNINGS
 #include <dcp/util.h>
 #include <boost/atomic.hpp>
-#include <boost/shared_ptr.hpp>
 #include <boost/thread.hpp>
 #include <boost/thread/condition.hpp>
 #undef None
@@ -55,7 +54,7 @@ public:
        }
 
 private:
-       void set_image (boost::shared_ptr<const Image> image);
+       void set_image (std::shared_ptr<const Image> image);
        void set_image_and_draw ();
        void draw (Position<int> inter_position, dcp::Size inter_size);
        void thread ();
@@ -81,5 +80,5 @@ private:
        boost::atomic<bool> _playing;
        boost::atomic<bool> _one_shot;
 
-       boost::shared_ptr<wxTimer> _timer;
+       std::shared_ptr<wxTimer> _timer;
 };
index 9ceefda4a372644a75d2dafa5dae17a4987a58eb..78aa237e1f6ff6a4482421412a560091d3dc505f 100644 (file)
@@ -35,15 +35,15 @@ using std::max;
 using std::vector;
 using std::string;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
 
-HintsDialog::HintsDialog (wxWindow* parent, boost::weak_ptr<Film> film, bool ok)
+HintsDialog::HintsDialog (wxWindow* parent, std::weak_ptr<Film> film, bool ok)
        : wxDialog (parent, wxID_ANY, _("Hints"))
        , _film (film)
        , _hints (0)
@@ -82,7 +82,7 @@ HintsDialog::HintsDialog (wxWindow* parent, boost::weak_ptr<Film> film, bool ok)
 
        _text->GetCaret()->Hide ();
 
-       boost::shared_ptr<Film> locked_film = _film.lock ();
+       std::shared_ptr<Film> locked_film = _film.lock ();
        if (locked_film) {
                _film_change_connection = locked_film->Change.connect (boost::bind (&HintsDialog::film_change, this, _1));
                _film_content_change_connection = locked_film->ContentChange.connect (boost::bind (&HintsDialog::film_content_change, this, _1));
@@ -101,7 +101,7 @@ HintsDialog::film_change (ChangeType type)
        _text->Clear ();
        _current.clear ();
 
-       boost::shared_ptr<Film> film = _film.lock ();
+       std::shared_ptr<Film> film = _film.lock ();
        if (!film) {
                return;
        }
index 87dcf19535d977e7d8e8c89e824ccdb2f037707c..4c4449a26ba6ff0c66a82a24621f383da8f57224 100644 (file)
@@ -23,7 +23,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class wxRichTextCtrl;
@@ -33,7 +32,7 @@ class Hints;
 class HintsDialog : public wxDialog
 {
 public:
-       HintsDialog (wxWindow* parent, boost::weak_ptr<Film>, bool ok);
+       HintsDialog (wxWindow* parent, std::weak_ptr<Film>, bool ok);
 
 private:
        void film_change (ChangeType);
@@ -45,7 +44,7 @@ private:
        void finished ();
        void progress (std::string m);
 
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        wxGauge* _gauge;
        wxStaticText* _gauge_message;
        wxRichTextCtrl* _text;
index bfc177a5840f1265099b7a6c05b8da725075158a..7976e6d444fa5c9fbf57a0180430eed7f299aa3a 100644 (file)
@@ -28,8 +28,8 @@
 
 using std::string;
 using std::vector;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 189e28e2ba08406659a17559fdcd58bfcaeb9ce7..6e4eea40eaf7e1804cabefdbb964aeb286d9dc1f 100644 (file)
@@ -22,8 +22,6 @@
 #include <dcp/language_tag.h>
 #include <dcp/types.h>
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <vector>
 
 class Film;
@@ -34,7 +32,7 @@ class RatingDialog;
 class InteropMetadataDialog : public wxDialog
 {
 public:
-       InteropMetadataDialog (wxWindow* parent, boost::weak_ptr<Film> film);
+       InteropMetadataDialog (wxWindow* parent, std::weak_ptr<Film> film);
 
 private:
        std::vector<dcp::Rating> ratings () const;
@@ -43,7 +41,7 @@ private:
        void setup_sensitivity ();
        void subtitle_language_changed (dcp::LanguageTag tag);
 
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        wxCheckBox* _enable_subtitle_language;
        LanguageTagWidget* _subtitle_language;
        EditableList<dcp::Rating, RatingDialog>* _ratings;
index 652b85d4706ce1b2b3f21bd22c1aa4c5291e8e5c..2dcd85d3a287fa5b8ee398e0cfb2510601362e8f 100644 (file)
@@ -26,7 +26,7 @@
 #include <wx/sizer.h>
 #include <wx/spinctrl.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param parent Parent window.
  *  @param dm Initial ISDCF metadata.
index b1ecb5a36981d0906ee23d2d916fe33607ddbb65..9864492473a745feaa5691809b8af979beeb77c0 100644 (file)
@@ -21,7 +21,6 @@
 #include "table_dialog.h"
 #include "lib/isdcf_metadata.h"
 #include <wx/textctrl.h>
-#include <boost/shared_ptr.hpp>
 
 class wxSpinCtrl;
 class Film;
index a0430ca811128a9f3bd62e7adfa7c200e19611f9..3c0f44675286a8c556af51099c60f2beb95841ec 100644 (file)
@@ -39,8 +39,8 @@ using std::list;
 using std::map;
 using std::min;
 using std::cout;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::bind;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 2e471532fe1e7399a7e9b0978bbafcfe6e99fa80..392d7504ce2878b2bca4773102aebb77bb993785 100644 (file)
  *  @brief Class which is a wxPanel for showing the progress of jobs.
  */
 
+
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <list>
+#include <memory>
+
 
 class Job;
 class JobView;
 
+
 /** @class JobManagerView
  *  @brief Class which is a wxPanel for showing the progress of jobs.
  */
@@ -41,15 +44,15 @@ public:
        JobManagerView (wxWindow *, bool batch);
 
 private:
-       void job_added (boost::weak_ptr<Job>);
+       void job_added (std::weak_ptr<Job>);
        void periodic ();
        void replace ();
        void job_list_changed ();
 
        wxPanel* _panel;
        wxFlexGridSizer* _table;
-       boost::shared_ptr<wxTimer> _timer;
+       std::shared_ptr<wxTimer> _timer;
        bool _batch;
 
-       std::list<boost::shared_ptr<JobView> > _job_records;
+       std::list<std::shared_ptr<JobView> > _job_records;
 };
index 4f925873da408b28d5cc7af33bb46b91cfc87bd8..52c975beefaa38d5754d7292dfbba1b535b28260 100644 (file)
@@ -36,9 +36,9 @@
 
 using std::string;
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table)
        : _job (job)
index d58a90831e37ae075faa54f730fcc338f07e508a..19f746b012bf90fcc3473807e4e7fbb32720fb0a 100644 (file)
@@ -22,7 +22,6 @@
 #define DCPOMATIC_JOB_VIEW_H
 
 #include <boost/noncopyable.hpp>
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class Job;
@@ -40,7 +39,7 @@ class wxCheckBox;
 class JobView : public boost::noncopyable
 {
 public:
-       JobView (boost::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
+       JobView (std::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
        virtual ~JobView () {}
 
        virtual int insert_position () const = 0;
@@ -51,14 +50,14 @@ public:
        void insert (int pos);
        void detach ();
 
-       boost::shared_ptr<Job> job () const {
+       std::shared_ptr<Job> job () const {
                return _job;
        }
 
 protected:
        virtual void finished ();
 
-       boost::shared_ptr<Job> _job;
+       std::shared_ptr<Job> _job;
        wxFlexGridSizer* _table;
        /** sizer for buttons (cancel, details, pause etc.) */
        wxBoxSizer* _buttons;
index a49818cc8c5d420fc48a4d72dfe13478451270a0..455998c5cab002bccfea7550a0018b652ce6b102 100644 (file)
@@ -22,7 +22,7 @@
 #include "normal_job_view.h"
 #include "lib/job.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 JobViewDialog::JobViewDialog (wxWindow* parent, wxString title, shared_ptr<Job> job)
        : TableDialog (parent, title, 4, 0, false)
index 54a6c1636d0c6951e9fcf4b03f1e75f6216b6ef0..b72ad298d0682bdcfb2871f43edea3e19ffc0e5b 100644 (file)
 
 */
 
+
 #include "table_dialog.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
+#include <memory>
+
 
 class JobView;
 class Job;
@@ -28,13 +29,13 @@ class Job;
 class JobViewDialog : public TableDialog
 {
 public:
-       JobViewDialog (wxWindow* parent, wxString title, boost::shared_ptr<Job> job);
+       JobViewDialog (wxWindow* parent, wxString title, std::shared_ptr<Job> job);
        ~JobViewDialog ();
 
 private:
        void periodic ();
 
        JobView* _view;
-       boost::weak_ptr<Job> _job;
-       boost::shared_ptr<wxTimer> _timer;
+       std::weak_ptr<Job> _job;
+       std::shared_ptr<wxTimer> _timer;
 };
index 9ff29082253a162a848a0f205612ae114ebbf200..666701168ffa55beae283b701d252c9e838f97b8 100644 (file)
@@ -48,7 +48,7 @@ using std::cout;
 using std::vector;
 using std::make_pair;
 using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index a240ec1b6bb85040cf854b62cf9fd05a99546e65..ea504f8429b1922f4846320510e59641ff207f6d 100644 (file)
@@ -21,7 +21,6 @@
 #include "wx_util.h"
 #include <dcp/types.h>
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <map>
 
@@ -40,14 +39,14 @@ struct CPLSummary;
 class KDMDialog : public wxDialog
 {
 public:
-       KDMDialog (wxWindow *, boost::shared_ptr<const Film> film);
+       KDMDialog (wxWindow *, std::shared_ptr<const Film> film);
 
 private:
        void setup_sensitivity ();
        void make_clicked ();
        bool confirm_overwrite (boost::filesystem::path path);
 
-       boost::weak_ptr<const Film> _film;
+       std::weak_ptr<const Film> _film;
        ScreensPanel* _screens;
        KDMTimingPanel* _timing;
        KDMCPLPanel* _cpl;
index 961a27fc2a66dab5a854d23790c29ce5929d2923..c08a767320635ca8360f6be97ecf3d84b0a50f6f 100644 (file)
@@ -48,7 +48,7 @@ using std::string;
 using std::list;
 using std::exception;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 0281b26d0d8253ab2d24d0fedd9aeee61f0cba15..cc4453d0267ece10a36bedeb96d58424c12aa636 100644 (file)
@@ -51,7 +51,7 @@ public:
                return _forensic_mark_audio_up_to;
        }
 
-       std::pair<boost::shared_ptr<Job>, int> make (
+       std::pair<std::shared_ptr<Job>, int> make (
                std::list<KDMWithMetadataPtr > screen_kdms,
                std::string name,
                boost::function<bool (boost::filesystem::path)> confirm_overwrite
index 245dee2dbf37551becced762afc8bd31d1585af2..2d2fc81f665a578d97fa2f275a38186a01e885b7 100644 (file)
@@ -29,7 +29,6 @@
 #include <boost/bind/bind.hpp>
 #include <boost/foreach.hpp>
 #include <boost/optional.hpp>
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <iostream>
 #include <iterator>
@@ -42,8 +41,8 @@ using std::pair;
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index c8529f108f64bc00b8d65c17a6a1e4a046332301..31789af2cca675bf190f746cce83afe7f33dba33 100644 (file)
@@ -33,8 +33,8 @@
 
 using std::cout;
 using boost::bind;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 using dcpomatic::DCPTime;
 
index e2c261873959074522a02a6356794beb0495388c..a3f3532e5b53a9d666f54cb86b06688e0a0b4c43 100644 (file)
 
 */
 
+
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <list>
+#include <memory>
+
 
 class Marker;
 class Film;
@@ -33,9 +34,9 @@ class FilmViewer;
 class MarkersDialog : public wxDialog
 {
 public:
-       MarkersDialog (wxWindow* parent, boost::weak_ptr<Film> film, boost::weak_ptr<FilmViewer> viewer);
+       MarkersDialog (wxWindow* parent, std::weak_ptr<Film> film, std::weak_ptr<FilmViewer> viewer);
 
 private:
-       std::list<boost::shared_ptr<Marker> > _markers;
-       boost::weak_ptr<Film> _film;
+       std::list<std::shared_ptr<Marker> > _markers;
+       std::weak_ptr<Film> _film;
 };
index db6b71b489935b1fa1283dfbf686b37245a8e972..933f2f42a1be032593b6f1428c1fb1ac4ebd2b93 100644 (file)
@@ -25,7 +25,7 @@
 
 using std::string;
 using dcp::locale_convert;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 MonitorDialog::MonitorDialog (wxWindow* parent)
index 266f44264c97f33e966ae6d3e68224f9f34a1aa4..b4b6e3ae3b08d34d98288b1d73f20812b4b76d9c 100644 (file)
@@ -24,7 +24,7 @@
 #include <boost/foreach.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 3c6f3d064d4610f926f1f64ec7cffd44ccc07377..61520a71fabfb3c845032910c22b43ebf8a33e54 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "table_dialog.h"
 #include "lib/dcpomatic_time.h"
-#include <boost/weak_ptr.hpp>
 #include <boost/optional.hpp>
 
 class Film;
@@ -29,11 +28,11 @@ class wxSpinCtrl;
 class MoveToDialog : public TableDialog
 {
 public:
-       MoveToDialog (wxWindow* parent, boost::optional<dcpomatic::DCPTime> position, boost::shared_ptr<const Film> film);
+       MoveToDialog (wxWindow* parent, boost::optional<dcpomatic::DCPTime> position, std::shared_ptr<const Film> film);
 
        dcpomatic::DCPTime position () const;
 
 private:
-       boost::weak_ptr<const Film> _film;
+       std::weak_ptr<const Film> _film;
        wxSpinCtrl* _reel;
 };
index a4c88103977c9cd04b9e526b22775c47f0d715db..5b989bdb55d4aba2b7a995dbdfc4b110db8fcd92 100644 (file)
@@ -24,7 +24,7 @@
 #include "check_box.h"
 #include <boost/foreach.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index ada0596c82b978a5b5a15af19c5c621727e0e697..6c9c08fa720ccb64f21c90c8e25ab1d64fec3d08 100644 (file)
@@ -23,7 +23,7 @@
 #include "lib/job.h"
 #include <wx/wx.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 NormalJobView::NormalJobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table)
        : JobView (job, parent, container, table)
index b9d6327a0258d631a12744d4a015846e0e5e621b..ea1a014f4fececef6a485d695fe2dcbbfe8fe534 100644 (file)
@@ -25,7 +25,7 @@ class wxSizer;
 class NormalJobView : public JobView
 {
 public:
-       NormalJobView (boost::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
+       NormalJobView (std::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table);
 
        void setup ();
 
index 7af42932654616ffe213c6c0980c40564be315bf..3158b279cf4c600d0827dee923e80f4f45966976 100644 (file)
@@ -65,7 +65,7 @@ using std::pair;
 using std::make_pair;
 using std::map;
 using boost::bind;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index 9a569c00cc127226dd0d3c6c3db76cef9df1d812..f0eaa59bbea8e643ce7900f332fc3836e824061e 100644 (file)
@@ -30,9 +30,9 @@
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 
 /* This should be even */
index ae3e134295f3442694a1dceda5fcff9816f83d32..0dd6c4ad0e8f9c41f584b90ca43d729afc291dc2 100644 (file)
@@ -23,14 +23,13 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
 #include <boost/scoped_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 
 class FilmViewer;
 
 class PlayerInformation : public wxPanel
 {
 public:
-       PlayerInformation (wxWindow* parent, boost::weak_ptr<FilmViewer> viewer);
+       PlayerInformation (wxWindow* parent, std::weak_ptr<FilmViewer> viewer);
 
        void triggered_update ();
 
@@ -38,7 +37,7 @@ private:
 
        void periodic_update ();
 
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::weak_ptr<FilmViewer> _viewer;
        wxSizer* _sizer;
        wxStaticText** _dcp;
        wxStaticText* _dropped;
index 72ec7ad1fd35ef963862a604df911d10f7b88fff..56ff5f40d1ce7235abd83083dea1b8c3f38311f4 100644 (file)
@@ -40,8 +40,8 @@ using std::string;
 using std::cout;
 using std::exception;
 using std::sort;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 
index 4f144834ab342c0cb3ee4c90dfa7ce3197d80dd1..b0d04f4cb28caac81d5d2cb0cc508b1cbf2a1a0d 100644 (file)
@@ -26,16 +26,16 @@ class DCPContent;
 class PlaylistControls : public Controls
 {
 public:
-       PlaylistControls (wxWindow* parent, boost::shared_ptr<FilmViewer> viewer);
+       PlaylistControls (wxWindow* parent, std::shared_ptr<FilmViewer> viewer);
 
        void log (wxString s);
-       void set_film (boost::shared_ptr<Film> film);
+       void set_film (std::shared_ptr<Film> film);
 
        /** This is so that we can tell our parent player to reset the film
            when we have created one from a SPL.  We could call a method
            in the player's DOMFrame but we don't have that in a header.
        */
-       boost::signals2::signal<void (boost::weak_ptr<Film>)> ResetFilm;
+       boost::signals2::signal<void (std::weak_ptr<Film>)> ResetFilm;
 
        void play ();
        void stop ();
@@ -62,7 +62,7 @@ private:
        bool can_do_next ();
        void deselect_playlist ();
 
-       boost::optional<dcp::EncryptedKDM> get_kdm_from_directory (boost::shared_ptr<DCPContent> dcp);
+       boost::optional<dcp::EncryptedKDM> get_kdm_from_directory (std::shared_ptr<DCPContent> dcp);
 
        wxButton* _play_button;
        wxButton* _pause_button;
index 3f0946b22ec95c63cd6ccf78437897ec7a53fedc..39ba5915e8ead72281be5aa888269348df2c0acb 100644 (file)
@@ -24,7 +24,6 @@
 #include "lib/screen.h"
 #include <dcp/certificate.h>
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/optional.hpp>
 
 class Progress;
index 8bb78750e83e4afd208088dc1ae6da0f9c438752..086eac3e4482cb8b7aa048a7aeaf337538192aa6 100644 (file)
@@ -33,7 +33,7 @@ using std::cout;
 using std::map;
 using std::string;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index b33b7ebc88e6e6749f831cfdeae9353500ee584b..d224eed1b98251c71c2ae9c8f668ae73118fbcad 100644 (file)
@@ -25,7 +25,6 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/srchctrl.h>
 #include <wx/treectrl.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <list>
 #include <map>
@@ -40,12 +39,12 @@ public:
 
        void setup_sensitivity ();
 
-       std::list<boost::shared_ptr<DKDMRecipient> > recipients () const;
+       std::list<std::shared_ptr<DKDMRecipient> > recipients () const;
        boost::signals2::signal<void ()> RecipientsChanged;
 
 private:
        void add_recipients ();
-       void add_recipient (boost::shared_ptr<DKDMRecipient>);
+       void add_recipient (std::shared_ptr<DKDMRecipient>);
        void add_recipient_clicked ();
        void edit_recipient_clicked ();
        void remove_recipient_clicked ();
@@ -60,7 +59,7 @@ private:
        wxButton* _remove_recipient;
        wxTreeItemId _root;
 
-       typedef std::map<wxTreeItemId, boost::shared_ptr<DKDMRecipient> > RecipientMap;
+       typedef std::map<wxTreeItemId, std::shared_ptr<DKDMRecipient> > RecipientMap;
        RecipientMap _recipients;
        RecipientMap _selected;
 
index 981d13f31e1956e6085ee838c402d6b108c05ec5..8ec275b4e3b0de9254179c3e95cb61d9f4159eff 100644 (file)
@@ -28,7 +28,7 @@
 #include <wx/sizer.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @param parent Parent window.
  *  @param film Film that we are working on, or 0.
index 651087907d24d038432efa9f9679d6935e342367..b12bece618508505962ef001458bfea7533a6672 100644 (file)
 
 */
 
+
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/dialog.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
+#include <memory>
+
 
 class wxTextCtrl;
 class wxFlexGridSizer;
@@ -32,12 +34,12 @@ class Film;
 class ReportProblemDialog : public wxDialog
 {
 public:
-       ReportProblemDialog (wxWindow* parent, boost::shared_ptr<Film> film = boost::shared_ptr<Film>());
+       ReportProblemDialog (wxWindow* parent, std::shared_ptr<Film> film = std::shared_ptr<Film>());
 
        void report ();
 
 private:
-       boost::shared_ptr<Film> _film;
+       std::shared_ptr<Film> _film;
 
        wxSizer* _overall_sizer;
        wxFlexGridSizer* _table;
index 913480d76be734e0b7febfb930b80bf904e4a02a..6665ef39878d8bdba0de7301629495f12ce9ab3e 100644 (file)
@@ -22,7 +22,6 @@
 #include "lib/screen.h"
 #include <dcp/certificate.h>
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/optional.hpp>
 
 class Progress;
index d39b6688d63fb9dbb8ee246ed960a7c76ec50760..ee88d01789d299602d10f9a1177867506cf9ed0d 100644 (file)
@@ -34,7 +34,7 @@ using std::cout;
 using std::map;
 using std::string;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index 69d74b13bb6f1f26652a04be2275d17268e84ed5..35d935bead91663334924026741ff2195e9d7f5c 100644 (file)
@@ -24,7 +24,6 @@ DCPOMATIC_DISABLE_WARNINGS
 DCPOMATIC_ENABLE_WARNINGS
 #include <wx/srchctrl.h>
 #include <wx/treectrl.h>
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <list>
 #include <map>
@@ -41,15 +40,15 @@ public:
        explicit ScreensPanel (wxWindow* parent);
        ~ScreensPanel ();
 
-       std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const;
+       std::list<std::shared_ptr<dcpomatic::Screen> > screens () const;
        void setup_sensitivity ();
 
        boost::signals2::signal<void ()> ScreensChanged;
 
 private:
        void add_cinemas ();
-       boost::optional<wxTreeItemId> add_cinema (boost::shared_ptr<Cinema>);
-       boost::optional<wxTreeItemId> add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<dcpomatic::Screen>);
+       boost::optional<wxTreeItemId> add_cinema (std::shared_ptr<Cinema>);
+       boost::optional<wxTreeItemId> add_screen (std::shared_ptr<Cinema>, std::shared_ptr<dcpomatic::Screen>);
        void add_cinema_clicked ();
        void edit_cinema_clicked ();
        void remove_cinema_clicked ();
@@ -70,8 +69,8 @@ private:
        wxButton* _remove_screen;
        wxTreeItemId _root;
 
-       typedef std::map<wxTreeItemId, boost::shared_ptr<Cinema> > CinemaMap;
-       typedef std::map<wxTreeItemId, boost::shared_ptr<dcpomatic::Screen> > ScreenMap;
+       typedef std::map<wxTreeItemId, std::shared_ptr<Cinema> > CinemaMap;
+       typedef std::map<wxTreeItemId, std::shared_ptr<dcpomatic::Screen> > ScreenMap;
 
        CinemaMap _cinemas;
        ScreenMap _screens;
index 4c10c8f6bce7ad58ff3a1c775122312229fcf3c2..ceaeff289985e5f6a399a3516729d4b11228549a 100644 (file)
@@ -49,10 +49,10 @@ using std::pair;
 using std::cout;
 using std::vector;
 using std::make_pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 
-SelfDKDMDialog::SelfDKDMDialog (wxWindow* parent, boost::shared_ptr<const Film> film)
+SelfDKDMDialog::SelfDKDMDialog (wxWindow* parent, std::shared_ptr<const Film> film)
        : wxDialog (parent, wxID_ANY, _("Make DKDM for DCP-o-matic"))
 {
        /* Main sizer */
index f49749a69fa748abf412e1a8f0ff6f311c5c0f0c..20c138c41c4ac058f99a18a81ad391d03b5a4556 100644 (file)
@@ -24,7 +24,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <map>
 
@@ -36,7 +35,7 @@ class DirPickerCtrl;
 class SelfDKDMDialog : public wxDialog
 {
 public:
-       SelfDKDMDialog (wxWindow *, boost::shared_ptr<const Film>);
+       SelfDKDMDialog (wxWindow *, std::shared_ptr<const Film>);
 
        boost::filesystem::path cpl () const;
 
index 51fe4302c7c3af104018a0e379ef8e9d7dd3049e..5761222c64eec703decaf228c3dfb760e11b39b4 100644 (file)
@@ -23,7 +23,7 @@
 #include "wx_util.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 ServerDialog::ServerDialog (wxWindow* parent)
index 2b86ea68884194b0711ee75e3a95bdf9d0b5f254..342829471701f31bdee469a73ffd956d4e4a6dca 100644 (file)
@@ -32,7 +32,7 @@
 using std::max;
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 93b9c6e3d604862ad39f087c57c95dc17756f3b7..31756b5d85eceecbe62a693a5ed524adeb6edf5f 100644 (file)
@@ -42,7 +42,7 @@ public:
        NextFrameResult display_next_frame (bool non_blocking);
 
 private:
-       void set_image (boost::shared_ptr<const Image> image) {
+       void set_image (std::shared_ptr<const Image> image) {
                _image = image;
        }
 
@@ -51,7 +51,7 @@ private:
        void timer ();
 
        wxPanel* _panel;
-       boost::shared_ptr<const Image> _image;
+       std::shared_ptr<const Image> _image;
        wxTimer _timer;
        Position<int> _inter_position;
        dcp::Size _inter_size;
index 87be156f51ea597a0ee7f43e26034624d6a68cbe..c44e38146a0c4e3a91daf98938662eb80c345136 100644 (file)
@@ -32,8 +32,8 @@
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 0f9c436b9dd9075271aa04d84769ed3ae581cb9c..171507acf5ddf14742a5db297d853a6adb65b091 100644 (file)
@@ -25,8 +25,6 @@
 #include <dcp/language_tag.h>
 #include <dcp/types.h>
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <vector>
 
 
@@ -39,7 +37,7 @@ class LanguageTagWidget;
 class SMPTEMetadataDialog : public wxDialog, public WeakFilm
 {
 public:
-       SMPTEMetadataDialog (wxWindow* parent, boost::weak_ptr<Film> film);
+       SMPTEMetadataDialog (wxWindow* parent, std::weak_ptr<Film> film);
 
 private:
        std::vector<dcp::Rating> ratings () const;
index e73e2f6f6aa314dd20740fdda5056717b854d6b2..c78844ca1bc3ddd14e1d463519b88d440ece9d42 100644 (file)
@@ -23,7 +23,7 @@
 #include <wx/wx.h>
 #include <wx/tglbtn.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls)
        : Controls (parent, viewer, editor_controls)
index 143624126557c0ddeed1e4a2987615ecc7401d7b..eac47726b2660436eeb660c9d27b6a30e9b7ec3f 100644 (file)
@@ -23,7 +23,7 @@
 class StandardControls : public Controls
 {
 public:
-       StandardControls (wxWindow* parent, boost::shared_ptr<FilmViewer> viewer, bool editor_controls);
+       StandardControls (wxWindow* parent, std::shared_ptr<FilmViewer> viewer, bool editor_controls);
 
        void play ();
        void stop ();
index 46edacd97258ca8b8256c9081a523b0846e5dfd8..69ee61966a016d4750a4cec67b6ea86bf001f470 100644 (file)
@@ -39,9 +39,9 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::map;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
index b0dd8d30723775a852eb66234e7f25968c382e28..299b3c70a1c082d087171cf68f88a6d5d56449a8 100644 (file)
@@ -24,7 +24,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class wxRadioButton;
@@ -41,7 +40,7 @@ class Job;
 class SubtitleAppearanceDialog : public wxDialog
 {
 public:
-       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<const Film> film, boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption);
+       SubtitleAppearanceDialog (wxWindow* parent, std::shared_ptr<const Film> film, std::shared_ptr<Content> content, std::shared_ptr<TextContent> caption);
 
        void apply ();
 
@@ -53,7 +52,7 @@ private:
        void active_jobs_changed (boost::optional<std::string> last);
        void add_colours ();
 
-       boost::weak_ptr<const Film> _film;
+       std::weak_ptr<const Film> _film;
        wxCheckBox* _force_colour;
        wxColourPickerCtrl* _colour;
        wxCheckBox* _force_effect;
@@ -73,14 +72,14 @@ private:
        wxStaticText* _finding;
        wxFlexGridSizer* _colour_table;
 
-       boost::shared_ptr<Content> _content;
-       boost::shared_ptr<TextContent> _caption;
-       boost::shared_ptr<FFmpegSubtitleStream> _stream;
+       std::shared_ptr<Content> _content;
+       std::shared_ptr<TextContent> _caption;
+       std::shared_ptr<FFmpegSubtitleStream> _stream;
 
        boost::signals2::scoped_connection _content_connection;
        boost::signals2::scoped_connection _job_manager_connection;
 
-       boost::weak_ptr<Job> _job;
+       std::weak_ptr<Job> _job;
 
        static int const NONE;
        static int const OUTLINE;
index 2d9044f6b27a950d96ad8f716379b117efaea675..968cd57404dd729957d97f842a7dd82482771807 100644 (file)
@@ -32,8 +32,8 @@
 #endif
 
 using std::string;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 
 SystemInformationDialog::SystemInformationDialog (wxWindow* parent, weak_ptr<FilmViewer> weak_viewer)
        : TableDialog (parent, _("System information"), 2, 1, false)
index 63c70fba5e6fb540ef2872b0bb2812c98e5b7be2..5b9efa2347a449e37c92e1edc1ae0fad61ff4221 100644 (file)
 
 */
 
+
 #include "table_dialog.h"
-#include <boost/weak_ptr.hpp>
+#include <memory>
+
 
 class FilmViewer;
 
 class SystemInformationDialog : public TableDialog
 {
 public:
-       SystemInformationDialog (wxWindow* parent, boost::weak_ptr<FilmViewer> viewer);
+       SystemInformationDialog (wxWindow* parent, std::weak_ptr<FilmViewer> viewer);
 
 };
index b21d33ce57f1b1f0c5bfe844dc5bc5c4037f1749..5b54fa35b8e1acd75944b17e486c71e70e179a0a 100644 (file)
@@ -49,9 +49,9 @@ using std::vector;
 using std::string;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::bind;
 
 /** @param t Original text type of the content, if known */
@@ -512,10 +512,10 @@ TextPanel::setup_sensitivity ()
        ContentList sel = _parent->selected_text ();
        BOOST_FOREACH (shared_ptr<Content> i, sel) {
                /* These are the content types that could include subtitles */
-               shared_ptr<const FFmpegContent> fc = boost::dynamic_pointer_cast<const FFmpegContent> (i);
-               shared_ptr<const StringTextFileContent> sc = boost::dynamic_pointer_cast<const StringTextFileContent> (i);
-               shared_ptr<const DCPContent> dc = boost::dynamic_pointer_cast<const DCPContent> (i);
-               shared_ptr<const DCPSubtitleContent> dsc = boost::dynamic_pointer_cast<const DCPSubtitleContent> (i);
+               shared_ptr<const FFmpegContent> fc = std::dynamic_pointer_cast<const FFmpegContent> (i);
+               shared_ptr<const StringTextFileContent> sc = std::dynamic_pointer_cast<const StringTextFileContent> (i);
+               shared_ptr<const DCPContent> dc = std::dynamic_pointer_cast<const DCPContent> (i);
+               shared_ptr<const DCPSubtitleContent> dsc = std::dynamic_pointer_cast<const DCPSubtitleContent> (i);
                if (fc) {
                        if (!fc->text.empty()) {
                                ++ffmpeg_subs;
index cd0890e3d24a0a53fdaef02f436097d643f99472..f35f39cbe340774aebe7aa0dd83439059ab74467 100644 (file)
@@ -101,8 +101,8 @@ private:
        int _outline_subtitles_row;
        int _ccap_track_row;
 
-       boost::weak_ptr<Content> _analysis_content;
+       std::weak_ptr<Content> _analysis_content;
        boost::signals2::scoped_connection _analysis_finished_connection;
-       boost::shared_ptr<SubtitleAnalysis> _analysis;
+       std::shared_ptr<SubtitleAnalysis> _analysis;
        bool _loading_analysis;
 };
index 491df7b3b9693c16cca8313ea1f1a5d739bdfc79..b4b2baae211503c8792d56b44f3ae799e8eefcda 100644 (file)
 #include "lib/text_decoder.h"
 
 using std::list;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::bind;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index d360838a834327ea5063d6d821dd1c6e65774691..b44742b6313afeeb524454f59577fbdc4e8f0700 100644 (file)
@@ -24,8 +24,6 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
 #include <wx/listctrl.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 
 class Decoder;
 class FilmViewer;
@@ -36,11 +34,11 @@ class TextView : public wxDialog
 public:
        TextView (
                wxWindow *,
-               boost::shared_ptr<Film>,
-               boost::shared_ptr<Content> content,
-               boost::shared_ptr<TextContent> caption,
-               boost::shared_ptr<Decoder>,
-               boost::weak_ptr<FilmViewer> viewer
+               std::shared_ptr<Film>,
+               std::shared_ptr<Content> content,
+               std::shared_ptr<TextContent> caption,
+               std::shared_ptr<Decoder>,
+               std::weak_ptr<FilmViewer> viewer
                );
 
 private:
@@ -53,6 +51,6 @@ private:
        boost::optional<FrameRateChange> _frc;
        boost::optional<int> _last_count;
        std::vector<dcpomatic::ContentTime> _start_times;
-       boost::weak_ptr<Content> _content;
-       boost::weak_ptr<FilmViewer> _film_viewer;
+       std::weak_ptr<Content> _content;
+       std::weak_ptr<FilmViewer> _film_viewer;
 };
index 7b9758febd16a4b3a27e300ab0f259745a3c5c42..054eac734f5afdc00f465b5826f344ea7f6d77a8 100644 (file)
@@ -39,7 +39,6 @@
 #include "lib/video_content.h"
 #include "lib/atmos_mxf_content.h"
 #include <wx/graphics.h>
-#include <boost/weak_ptr.hpp>
 #include <boost/foreach.hpp>
 #include <list>
 #include <iterator>
@@ -50,9 +49,9 @@ using std::cout;
 using std::min;
 using std::max;
 using std::abs;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::bind;
 using boost::optional;
 using namespace dcpomatic;
index 44a8973716bdd3dca7f3df7fe761f5fd1a019f40..b532e74e3730989bb78124cc7a8cacf9e997dd86 100644 (file)
@@ -24,8 +24,6 @@
 #include "lib/rect.h"
 #include "lib/film.h"
 #include <wx/wx.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
 
 class Film;
@@ -39,9 +37,9 @@ class FilmViewer;
 class Timeline : public wxPanel
 {
 public:
-       Timeline (wxWindow *, ContentPanel *, boost::shared_ptr<Film>, boost::weak_ptr<FilmViewer> viewer);
+       Timeline (wxWindow *, ContentPanel *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer);
 
-       boost::shared_ptr<const Film> film () const;
+       std::shared_ptr<const Film> film () const;
 
        void force_redraw (dcpomatic::Rect<int> const &);
 
@@ -106,7 +104,7 @@ private:
        void zoom_all ();
        void update_playhead ();
 
-       boost::shared_ptr<TimelineView> event_to_view (wxMouseEvent &);
+       std::shared_ptr<TimelineView> event_to_view (wxMouseEvent &);
        TimelineContentViewList selected_views () const;
        ContentList selected_content () const;
        void maybe_snap (dcpomatic::DCPTime a, dcpomatic::DCPTime b, boost::optional<dcpomatic::DCPTime>& nearest_distance) const;
@@ -114,18 +112,18 @@ private:
        wxScrolledCanvas* _labels_canvas;
        wxScrolledCanvas* _main_canvas;
        ContentPanel* _content_panel;
-       boost::weak_ptr<Film> _film;
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::weak_ptr<Film> _film;
+       std::weak_ptr<FilmViewer> _viewer;
        TimelineViewList _views;
-       boost::shared_ptr<TimelineTimeAxisView> _time_axis_view;
-       boost::shared_ptr<TimelineReelsView> _reels_view;
-       boost::shared_ptr<TimelineLabelsView> _labels_view;
+       std::shared_ptr<TimelineTimeAxisView> _time_axis_view;
+       std::shared_ptr<TimelineReelsView> _reels_view;
+       std::shared_ptr<TimelineLabelsView> _labels_view;
        int _tracks;
        boost::optional<double> _pixels_per_second;
        bool _left_down;
        wxPoint _down_point;
        boost::optional<wxPoint> _zoom_point;
-       boost::shared_ptr<TimelineContentView> _down_view;
+       std::shared_ptr<TimelineContentView> _down_view;
        dcpomatic::DCPTime _down_view_position;
        bool _first_move;
        ContentMenu _menu;
index 45a8fccd01913bde066532f3639352171b63d544..f982921edf0d0b5c8bfc9a071cd183e17ac22d8c 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "timeline_atmos_content_view.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @class TimelineAtmosContentView
  *  @brief Timeline view for AtmosContent.
index 1e33c5fb2aa4bc965a59b8106901af2704f53299..05f4352ebf1b52fe63ada6094f3115ae6cc9bff1 100644 (file)
@@ -26,7 +26,7 @@
 class TimelineAtmosContentView : public TimelineContentView
 {
 public:
-       TimelineAtmosContentView (Timeline& tl, boost::shared_ptr<Content> c);
+       TimelineAtmosContentView (Timeline& tl, std::shared_ptr<Content> c);
 
 private:
        bool active () const {
index 3ae0fdb45e07134e940ab04e8ddd3ed00d5f9052..d26c4025256934650ded8ef3dd2028ae27972ee6 100644 (file)
@@ -24,8 +24,8 @@
 #include "lib/util.h"
 
 using std::list;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** @class TimelineAudioContentView
  *  @brief Timeline view for AudioContent.
index bede1dcdaf00e5938f63c852b142b12819f195bb..d5a966ad5633ca442f166f1cff0aff89ca9c2033 100644 (file)
@@ -26,7 +26,7 @@
 class TimelineAudioContentView : public TimelineContentView
 {
 public:
-       TimelineAudioContentView (Timeline& tl, boost::shared_ptr<Content> c);
+       TimelineAudioContentView (Timeline& tl, std::shared_ptr<Content> c);
 
 private:
        bool active () const {
index 2af1c28ac3ce69086407df9daa431dad6aa8ed2f..2f2b7e3ed3bf907d9a8433c6709112c52dedd4e4 100644 (file)
@@ -26,7 +26,7 @@
 #include <boost/foreach.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 2573e3cb311b970cc181c1a76825b04beaa955bc..fcc0680647734c7dc80ca906b42e2eb0ef324266 100644 (file)
@@ -37,13 +37,13 @@ class Content;
 class TimelineContentView : public TimelineView
 {
 public:
-       TimelineContentView (Timeline& tl, boost::shared_ptr<Content> c);
+       TimelineContentView (Timeline& tl, std::shared_ptr<Content> c);
 
        dcpomatic::Rect<int> bbox () const;
 
        void set_selected (bool s);
        bool selected () const;
-       boost::shared_ptr<Content> content () const;
+       std::shared_ptr<Content> content () const;
        void set_track (int t);
        void unset_track ();
        boost::optional<int> track () const;
@@ -55,7 +55,7 @@ public:
 
 protected:
 
-       boost::weak_ptr<Content> _content;
+       std::weak_ptr<Content> _content;
 
 private:
 
@@ -69,6 +69,6 @@ private:
        boost::signals2::scoped_connection _content_connection;
 };
 
-typedef std::vector<boost::shared_ptr<TimelineContentView> > TimelineContentViewList;
+typedef std::vector<std::shared_ptr<TimelineContentView> > TimelineContentViewList;
 
 #endif
index 261177e36815e55b2a8d7ad52f812892ffbed585..563c31f703264243946c05e785cec0c7031e26da 100644 (file)
@@ -32,8 +32,8 @@
 using std::list;
 using std::cout;
 using std::string;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 77dfede50c452d69107daf080918cc95b514f0b8..97ddca964aff23df74efaf65c50635ed1bc739a4 100644 (file)
@@ -18,8 +18,6 @@
 
 */
 
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <wx/wx.h>
 #include "timeline.h"
 
@@ -28,7 +26,7 @@ class Playlist;
 class TimelineDialog : public wxDialog
 {
 public:
-       TimelineDialog (ContentPanel *, boost::shared_ptr<Film>, boost::weak_ptr<FilmViewer> viewer);
+       TimelineDialog (ContentPanel *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer);
 
        void set_selection (ContentList selection);
 
@@ -36,7 +34,7 @@ private:
        void film_change (ChangeType type, Film::Property);
        void tool_clicked (wxCommandEvent& id);
 
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        Timeline _timeline;
        wxToolBar* _toolbar;
        boost::signals2::scoped_connection _film_changed_connection;
index 1345ea5e49457950f4abea14fc9ef571285dfa7d..722a9f30a30e45cce7628bda6eaff1f727f8eace 100644 (file)
@@ -22,7 +22,7 @@
 #include "lib/text_content.h"
 #include "lib/content.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr<Content> c, shared_ptr<TextContent> caption)
        : TimelineContentView (tl, c)
index 055c841438ca49f0cc8ec58936a32ab970195563..98aea6316accce2b5ff12656db1faf491be94c80 100644 (file)
@@ -29,12 +29,12 @@ class TextContent;
 class TimelineTextContentView : public TimelineContentView
 {
 public:
-       TimelineTextContentView (Timeline& tl, boost::shared_ptr<Content>, boost::shared_ptr<TextContent>);
+       TimelineTextContentView (Timeline& tl, std::shared_ptr<Content>, std::shared_ptr<TextContent>);
 
 private:
        bool active () const;
        wxColour background_colour () const;
        wxColour foreground_colour () const;
 
-       boost::shared_ptr<TextContent> _caption;
+       std::shared_ptr<TextContent> _caption;
 };
index db15201909091d620aa159c9e4d41d44a5c378b0..b0f4b4f5d34dd255a8a5083b7ca883f96b5d160d 100644 (file)
@@ -22,8 +22,8 @@
 #include "lib/video_content.h"
 #include "timeline_video_content_view.h"
 
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 
 TimelineVideoContentView::TimelineVideoContentView (Timeline& tl, shared_ptr<Content> c)
        : TimelineContentView (tl, c)
index c32424d59bf22c106542af7673dd2b6386d9352f..2269a29301ffb1c8c1cbca37070674f7272ebe4c 100644 (file)
@@ -26,7 +26,7 @@
 class TimelineVideoContentView : public TimelineContentView
 {
 public:
-       TimelineVideoContentView (Timeline& tl, boost::shared_ptr<Content> c);
+       TimelineVideoContentView (Timeline& tl, std::shared_ptr<Content> c);
 
 private:
        bool active () const;
index d94e101244de0d028e941b9a9972c15cadf0e0fd..bfd1de8b752a9e7fb84915355484c87a9d2f8265 100644 (file)
@@ -53,6 +53,6 @@ private:
        dcpomatic::Rect<int> _last_paint_bbox;
 };
 
-typedef std::vector<boost::shared_ptr<TimelineView> > TimelineViewList;
+typedef std::vector<std::shared_ptr<TimelineView> > TimelineViewList;
 
 #endif
index 195887a298d3b69f5510ac81e520e9ccb869a285..82aaadedde7047052d64ef62afcae0b384432ee0 100644 (file)
@@ -50,9 +50,9 @@ DCPOMATIC_ENABLE_WARNINGS
 using std::cout;
 using std::string;
 using std::set;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index d413361d416f17e15ecf187ea630f71ee136c9cc..251acc9b559808523a757a1ba4f464433213b586 100644 (file)
@@ -27,7 +27,7 @@ class FilmViewer;
 class TimingPanel : public ContentSubPanel
 {
 public:
-       TimingPanel (ContentPanel *, boost::weak_ptr<FilmViewer> viewer);
+       TimingPanel (ContentPanel *, std::weak_ptr<FilmViewer> viewer);
 
        void film_changed (Film::Property);
        void film_content_changed (int);
@@ -47,7 +47,7 @@ private:
        void setup_sensitivity ();
        void add_to_grid ();
 
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::weak_ptr<FilmViewer> _viewer;
 
        wxStaticText* _h_label;
        wxStaticText* _m_label;
index 6432d21c7a9922930cf094a620bf4ea9de47dea1..bf78113d9f5519e96263a5f7397d2f39357bde0a 100644 (file)
@@ -29,7 +29,7 @@ DCPOMATIC_ENABLE_WARNINGS
 #include <boost/foreach.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job)
        : wxDialog (parent, wxID_ANY, _("DCP verification"))
index b67c1dfc74429ce9e5dca9656fbbcfcdcba3756c..2d3bac24f0018ede440815dded526802cccc644a 100644 (file)
@@ -31,7 +31,7 @@ class VerifyDCPJob;
 class VerifyDCPDialog : public wxDialog
 {
 public:
-       VerifyDCPDialog (wxWindow* parent, boost::shared_ptr<VerifyDCPJob> job);
+       VerifyDCPDialog (wxWindow* parent, std::shared_ptr<VerifyDCPJob> job);
 
 private:
        wxRichTextCtrl* _text;
index dfe496e58000de36b361f6c6a9e59d008c1e422a..030a9810de043b06686ba9105b8c5647d222eaf1 100644 (file)
 #include "lib/job.h"
 #include "lib/job_manager.h"
 #include <wx/evtloop.h>
-#include <boost/shared_ptr.hpp>
 #include <string>
 
 
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static int const max_file_name_length = 80;
index 7dd0c7495e56c41c433deb1b9a513f2c28c1498b..0f1526afe21b0be3c6f032bf9298d18f8402aca2 100644 (file)
 
 */
 
+
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 
 class Job;
@@ -37,7 +38,7 @@ class VerifyDCPProgressDialog : public wxDialog
 public:
        VerifyDCPProgressDialog (wxWindow* parent, wxString title);
 
-       bool run (boost::shared_ptr<Job> job);
+       bool run (std::shared_ptr<Job> job);
 
 private:
        void cancel ();
index 8841005faa8de671310c2eb82a4af46826648e90..5fcd527b8ba6daf8efdf70d1b6b4f73c2817030a 100644 (file)
@@ -51,8 +51,8 @@ using std::pair;
 using std::cout;
 using std::list;
 using std::set;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::bind;
 using boost::optional;
 using namespace dcpomatic;
index 7805a1fb3e9204085932b9db4f43a507c279121b..42a7fe58b22c3a4d39ba98c26d9c171d13c4caed 100644 (file)
@@ -26,7 +26,7 @@
 #include <boost/optional.hpp>
 
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 VideoView::VideoView (FilmViewer* viewer)
index e5fbb671dd20e7f770fee744a5c8c676fd45d509..3b596197e42c82bca0bbeab977752a51f2f9ba37 100644 (file)
@@ -25,7 +25,6 @@
 #include "lib/timer.h"
 #include "lib/types.h"
 #include "lib/exception_store.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread.hpp>
 #include <boost/noncopyable.hpp>
@@ -61,7 +60,7 @@ public:
        virtual NextFrameResult display_next_frame (bool) = 0;
 
        void clear ();
-       bool reset_metadata (boost::shared_ptr<const Film> film, dcp::Size player_video_container_size);
+       bool reset_metadata (std::shared_ptr<const Film> film, dcp::Size player_video_container_size);
 
        /** Emitted from the GUI thread when our display changes in size */
        boost::signals2::signal<void()> Sized;
@@ -133,7 +132,7 @@ protected:
                return _length;
        }
 
-       std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> player_video () const {
+       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> player_video () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _player_video;
        }
@@ -156,7 +155,7 @@ private:
        /** Mutex protecting all the state in this class */
        mutable boost::mutex _mutex;
 
-       std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> _player_video;
+       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> _player_video;
        int _video_frame_rate;
        /** length of the film we are playing, or 0 if there is none */
        dcpomatic::DCPTime _length;
index e61043cc12b6e0ff885118aa098bfff5acb8b2ba..bc68fa6c2efe95e6b51729988533efded801ae48 100644 (file)
@@ -28,8 +28,8 @@
 
 using std::cout;
 using boost::bind;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 252720f606214764d7a328b2ee555dd328c05df9..25bd462aee991422e89647215eea69e9fb358b45 100644 (file)
 
 */
 
+
 #include "lib/warnings.h"
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/weak_ptr.hpp>
+#include <memory>
+
 
 class VideoWaveformPlot;
 class FilmViewer;
@@ -31,7 +33,7 @@ class Film;
 class VideoWaveformDialog : public wxDialog
 {
 public:
-       VideoWaveformDialog (wxWindow* parent, boost::weak_ptr<const Film> film, boost::weak_ptr<FilmViewer> viewer);
+       VideoWaveformDialog (wxWindow* parent, std::weak_ptr<const Film> film, std::weak_ptr<FilmViewer> viewer);
 
 private:
        void shown (wxShowEvent &);
@@ -39,7 +41,7 @@ private:
        void contrast_changed ();
        void mouse_moved (int x1, int x2, int y1, int y2);
 
-       boost::weak_ptr<FilmViewer> _viewer;
+       std::weak_ptr<FilmViewer> _viewer;
        VideoWaveformPlot* _plot;
        wxChoice* _component;
        wxSlider* _contrast;
index edec4d6ebb9e737c90e2aa980d05ca3f9e0546c5..cf07a2ea7fca10d5b19d1223de492a58d6887d8c 100644 (file)
@@ -36,8 +36,8 @@ using std::cout;
 using std::min;
 using std::max;
 using std::string;
-using boost::weak_ptr;
-using boost::shared_ptr;
+using std::weak_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index f107f0399dcd21d97be622df483c6b9d1b9670d9..037ff0cbf42e77069df101402743826e354b3465 100644 (file)
@@ -22,8 +22,6 @@
 DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/signals2.hpp>
 
 namespace dcp {
@@ -38,7 +36,7 @@ class FilmViewer;
 class VideoWaveformPlot : public wxPanel
 {
 public:
-       VideoWaveformPlot (wxWindow* parent, boost::weak_ptr<const Film> film, boost::weak_ptr<FilmViewer> viewer);
+       VideoWaveformPlot (wxWindow* parent, std::weak_ptr<const Film> film, std::weak_ptr<FilmViewer> viewer);
 
        void set_enabled (bool e);
        void set_component (int c);
@@ -55,12 +53,12 @@ private:
        void paint ();
        void sized (wxSizeEvent &);
        void create_waveform ();
-       void set_image (boost::shared_ptr<PlayerVideo>);
+       void set_image (std::shared_ptr<PlayerVideo>);
        void mouse_moved (wxMouseEvent &);
 
-       boost::weak_ptr<const Film> _film;
-       boost::shared_ptr<dcp::OpenJPEGImage> _image;
-       boost::shared_ptr<const Image> _waveform;
+       std::weak_ptr<const Film> _film;
+       std::shared_ptr<dcp::OpenJPEGImage> _image;
+       std::shared_ptr<const Image> _waveform;
        bool _dirty;
        bool _enabled;
        int _component;
index 7948dd13c37ed3c4a3a9f9610236b28f08b36012..5d02d27bf80ffd6a9e64e1ffcfd0cae82de44b0e 100644 (file)
@@ -44,7 +44,7 @@ DCPOMATIC_ENABLE_WARNINGS
 using std::string;
 using std::vector;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using dcp::locale_convert;
 using namespace dcpomatic;
index cbbede0a9991dff957bae0600a6028e639f21275..e09aeeb5c4882912f7c0c8feb813537e02ba8542 100644 (file)
@@ -36,7 +36,7 @@
 #include "lib/dcpomatic_log.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (fourk_test)
 {
index fe64ed6a92d856ae4bc54d650dd8e85fc1305fea..95c43ce34edbfb294d29e620c1a2d560a42754b0 100644 (file)
@@ -32,7 +32,7 @@
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (atmos_passthrough_test)
index c3a83186ed301befecc6771df7c2258ec39751c8..9da2867462c81cd66da4c424265a94cfa81466a5 100644 (file)
@@ -41,7 +41,7 @@
 #include <iostream>
 
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 static float
index 2645cf5172a171170a7d957a4f373628d85b1387..f229446f02a7a464e0199cf1fb6565d5e1fd91d2 100644 (file)
@@ -45,7 +45,7 @@
 using std::string;
 using std::cout;
 using boost::lexical_cast;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static
 void test_audio_delay (int delay_in_ms)
index b0bb1449c8e20674b1055a4fc3b4e527bd973f8c..13b0989108424e7735c61fb96ea6443f89794c76 100644 (file)
@@ -27,7 +27,7 @@
 #include "lib/audio_filter.h"
 #include "lib/audio_buffers.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 audio_filter_impulse_test_one (AudioFilter& f, int block_size, int num_blocks)
index db8b33a9b46203f2181719bcca095f56d68683d0..d8e5b0e267cf5d8e1640fee0e7f8562853128285 100644 (file)
@@ -39,7 +39,7 @@ using std::pair;
 using std::list;
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 using namespace dcpomatic;
 
index bb05386614875b34577ce30ac0bc32526729d992..6fd644a7ea8dc18aefd0153f4e3dc36e935777da 100644 (file)
@@ -31,7 +31,7 @@
 
 using std::cerr;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 #define CHECK_SAMPLE(c,f,r) \
        if (fabs(out->data(c)[f] - (r)) > 0.1) {                        \
index d814ab42119eca9885d945654af2f908b9dd75d2..fcb81e104781e47e1c1db7f65077934a1f5196fe 100644 (file)
@@ -32,7 +32,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Test the mid-side decoder for analysis and DCP-making */
 BOOST_AUTO_TEST_CASE (audio_processor_test)
index 782451a7d07a3861ab48f649d9b2df7ec32afc28..95927537fbe45ed91b9559ebd6ed86808b2e6c53 100644 (file)
@@ -23,7 +23,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 #define CANARY 9999
index 2a1360c78269b5962c08509eb15be62f036db284..4a056dbf70e949af532eb6cbe43eeb9d54bc1e34 100644 (file)
@@ -49,8 +49,8 @@
 
 using std::cout;
 using std::map;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 
 /** Build a small DCP with no picture and a single subtitle overlaid onto it from a SubRip file */
index 9340ebe75862336dc3315273f0ea569ac926e1be..8a588dcc9f8a5e2156cf119976c9d6d6559037e6 100644 (file)
@@ -28,7 +28,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index e7ab5ec7acdeaeddb79649c0a22e2bc38134e3ab..675d1eb24ecd2ee50474a99f97546f838c2edea8 100644 (file)
 #include <boost/thread.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::thread;
 using boost::optional;
-using boost::weak_ptr;
+using std::weak_ptr;
 using dcp::ArrayData;
 
 void
index 86666a44cc686386ca193af6c42a3a9c272e5010..4c59be72b497a9ae01ca7155c43322b6a079250b 100644 (file)
@@ -29,7 +29,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Basic test that Interop closed captions are written */
 BOOST_AUTO_TEST_CASE (closed_caption_test1)
index 94284f879aea0bb99959278454286ad8ccbb9541..f277edd9ad743f023e3ededadb5555c6807ff93d 100644 (file)
@@ -32,7 +32,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (colour_conversion_test1)
 {
index de9ca77747a0184ea02d120ca6ea42aea7423b24..0815e16c2be64f18185d388cdaf38178ff6dd502 100644 (file)
@@ -32,7 +32,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 /** There has been garbled audio with this piece of content */
index 28a9420da0397b6f51591490d18bfefe4052363f..5b15c6ee0949eab3d4e8d749a45985d52b19726a 100644 (file)
@@ -34,7 +34,7 @@
 
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (hash_added_to_imported_dcp_test)
index 231a99da2268c67a350bc4f1da04e773d5ff454e..0cd9722498696107c5ead99eaefb79a5916bd758 100644 (file)
@@ -39,7 +39,7 @@
 using std::list;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /* Check that DCPDecoder reuses old data when it should */
 BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
@@ -91,12 +91,12 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        BOOST_REQUIRE (!wait_for_jobs());
        shared_ptr<Player> player (new Player(test));
 
-       shared_ptr<DCPDecoder> decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       shared_ptr<DCPDecoder> decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        list<shared_ptr<dcp::Reel> > reels = decoder->reels();
 
        ov_content->set_position (test, dcpomatic::DCPTime(96000));
-       decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        BOOST_REQUIRE (reels == decoder->reels());
 
@@ -109,14 +109,14 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        BOOST_REQUIRE (!wait_for_jobs());
        player.reset (new Player(test));
 
-       decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        reels = decoder->reels();
 
        vf_content->add_ov (ov->dir(ov->dcp_name(false)));
        JobManager::instance()->add (shared_ptr<Job>(new ExamineContentJob(test, vf_content)));
        BOOST_REQUIRE (!wait_for_jobs());
-       decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        BOOST_REQUIRE (reels != decoder->reels());
 
@@ -127,14 +127,14 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        BOOST_REQUIRE (!wait_for_jobs());
        player.reset (new Player(test));
 
-       decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        reels = decoder->reels();
 
        encrypted_content->add_kdm (kdm);
        JobManager::instance()->add (shared_ptr<Job>(new ExamineContentJob(test, encrypted_content)));
        BOOST_REQUIRE (!wait_for_jobs());
-       decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
+       decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
        BOOST_REQUIRE (reels != decoder->reels());
 }
index 05554f4edd82538079761cf2ca7db86220579196..fd4c939bd5869e19f7f6554d7e1834321c50a434 100644 (file)
@@ -26,7 +26,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index f7e7fe795b56f954bec6c416f45ba93ba8afa32e..a3ef673fea82e35d694e9393f5f946cfeeb8bac1 100644 (file)
@@ -40,7 +40,7 @@
 
 using std::cout;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index b1effc9061ba13f261811d9200f4d64c36fe2390..5145ee7e370a47b6f13578437b409a6b7b431cb8 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::list;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static string
 openssl_hash (boost::filesystem::path file)
index 9a1f98ed28f4dd4f8bf459aa3fe97121ae70eacb..9f55499da58e8f2db138edecee46dccca1200ab3 100644 (file)
@@ -35,7 +35,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 5e2c130a50991a0f247e5035f125d819da2a8949..020c2cc13aa7e292c2ad7de1b01174329ab417aa 100644 (file)
@@ -40,14 +40,14 @@ using std::min;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static SNDFILE* ref = 0;
 static int ref_buffer_size = 0;
 static float* ref_buffer = 0;
 
 static void
-audio (boost::shared_ptr<AudioBuffers> audio, int channels)
+audio (std::shared_ptr<AudioBuffers> audio, int channels)
 {
        /* Check that we have a big enough buffer */
        BOOST_CHECK (audio->frames() * audio->channels() < ref_buffer_size);
index a54ffa0811f8d11850c51426ed43ce43e1dad271..fc315ec2d4470186d9c8c77eec1c3097a10b8135 100644 (file)
@@ -42,7 +42,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (ffmpeg_audio_test)
 {
index 8de8feeba2c6e9da64c9141f0fcf815ef57eae33..ea3b8d4f9d8ea2b0b81f6725bd6a9482d1cffd9a 100644 (file)
@@ -35,7 +35,7 @@
 #include "lib/video_content.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (ffmpeg_dcp_test)
 {
index 33b407a97414ad0bda53a9efa7c2b57d60ffdd56..01eec011010177db24d44225a1aca4444d29dc6f 100644 (file)
@@ -42,7 +42,7 @@ using std::cerr;
 using std::vector;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index bf66685867117421651f93e8ffeff186c34a576c..f81ebda9cfdfc9bc5991691bd5312259177d8be2 100644 (file)
@@ -39,7 +39,7 @@
 using std::cout;
 using std::cerr;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using boost::bind;
 #if BOOST_VERSION >= 106100
index 505bca7662f79f9e8fa7efdc3929e95f993fcbb4..684a67cf5983be5bd4314fb2efa84754a057bba0 100644 (file)
@@ -35,7 +35,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcpomatic;
 
index fbc3e51f0d9f3af0bc068213837d7b6f3dec283f..9c3311719ea0d5c73d316e0d7ee4479b6591b050 100644 (file)
@@ -29,7 +29,7 @@
 #include "lib/ffmpeg_audio_stream.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 /** Check that the FFmpegExaminer can extract the first video and audio time
index 35996f01a49a8365be1a106341f6f913bbfe6e09..134881c0d0238082704b9fc426baa3d039632bcb 100644 (file)
@@ -31,7 +31,7 @@
 #include "lib/audio_content.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test)
index ebc89d6b1130e3aec55abfbb3ad25dc10bfa52b0..6fce510604ed27eb107819baecd712b00fa3be02 100644 (file)
@@ -36,7 +36,7 @@
 #include <boost/regex.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 class Keep
 {
index 6af4b7ffea4b225186525f7e44a29e3390f5e4aa..d1c30c3984f1a4ecb61d513895d84359ba2c92f3 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (film_metadata_test)
 {
index 2a0aa9415546386e74eaade3d75226fdad96bc56..76a8ed5cbefe56c0872161126de9a81a926ef6ac 100644 (file)
@@ -35,7 +35,7 @@
 #include "lib/audio_content.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /* Test Playlist::best_dcp_frame_rate and FrameRateChange
    with a single piece of content.
index 5222f904634274d97a730db32bbdda56f8af67ec..1be36193a96374fe6a7584d0e3abe476d515fddc 100644 (file)
 #include "lib/text_content.h"
 #include "lib/util.h"
 #include "test.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 using std::string;
 using std::vector;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 vector<string> current_hints;
index 30da3ef3aeb86ce8d236d7001be32f92d573f443..61f1c4848b89f390c98e50af400fff4e5559498e 100644 (file)
@@ -27,7 +27,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (image_content_fade_test)
 {
index a80a97f07273bdb522e74aa4e99aa7ec78babef6..9dedb854ab36be4e36b2082b757c0f64b15d8f21 100644 (file)
 #include "lib/ffmpeg_image_proxy.h"
 #include "lib/j2k_image_proxy.h"
 #include "test.h"
-#include <boost/shared_ptr.hpp>
 #include <boost/test/unit_test.hpp>
 
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static const boost::filesystem::path data_file0 = TestPaths::private_data() / "player_seek_test_0.png";
index 3d599b82de84405adfd5136f6b3a188115baae9c..88bb00b8d2c692966be17bb48cd990549601149a 100644 (file)
@@ -34,7 +34,7 @@
 using std::string;
 using std::list;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (aligned_image_test)
 {
@@ -460,9 +460,9 @@ BOOST_AUTO_TEST_CASE (make_black_test)
 
        int N = 0;
        for (list<AVPixelFormat>::const_iterator i = pix_fmts.begin(); i != pix_fmts.end(); ++i) {
-               boost::shared_ptr<Image> foo (new Image (*i, in_size, true));
+               std::shared_ptr<Image> foo (new Image (*i, in_size, true));
                foo->make_black ();
-               boost::shared_ptr<Image> bar = foo->scale (out_size, dcp::YUV_TO_RGB_REC601, AV_PIX_FMT_RGB24, true, false);
+               std::shared_ptr<Image> bar = foo->scale (out_size, dcp::YUV_TO_RGB_REC601, AV_PIX_FMT_RGB24, true, false);
 
                uint8_t* p = bar->data()[0];
                for (int y = 0; y < bar->size().height; ++y) {
index cb485e68a872a2845b8c821d0ae1071ccf0b66e3..05b020e1c1240a6b7ceacac7799fd2db386603dc 100644 (file)
@@ -43,8 +43,8 @@
 using std::vector;
 using std::string;
 using std::map;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** Make an encrypted DCP, import it and make a new unencrypted DCP */
 BOOST_AUTO_TEST_CASE (import_dcp_test)
index 85428e7d337cc0f3343a811f89e1deb21e327b80..e146d2916f63f8f3931e4a1faeb5e7935e2b7ffd 100644 (file)
@@ -33,7 +33,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Interrupt a DCP encode when it is in progress, as this used to (still does?)
  *  sometimes give an error related to pthreads.
index 29bcff6ed26080ed9ef9d061f3e12136d346393f..11886cbef8e453a0afb386e6db4f2061f7134d07 100644 (file)
@@ -38,7 +38,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (isdcf_name_test)
 {
index a1e6c1ac68bdf1989289c49820c4b27a5ab691de..c114cbfe7111641281d63742bb22dc68ea2d65d6 100644 (file)
 #include "lib/video_content.h"
 #include <dcp/raw_convert.h>
 #include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
+
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 check (int target_bits_per_second)
index cc1c7ba8941f70d0aba97d3bf9e32ae0bfc6e301..c834ec12e4cdbcc1755cafc66384a60c0de8b75f 100644 (file)
@@ -29,7 +29,7 @@
 #include "lib/cross.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 class TestJob : public Job
 {
index 4ff0233dcfddd20e9d1d685a0e839f9a8b650264..bd329eeee685247402d04efb8731a91d698a5298 100644 (file)
 #include "lib/kdm_with_metadata.h"
 #include "test.h"
 #include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
+
 
 using std::list;
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 static
 bool
index cbdad26c516279b52dda6d0d3593610ced7989df..28c9eed427e8b7d667ec943d16157bfdb0249bae 100644 (file)
@@ -37,7 +37,7 @@
 
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 /** Check that FFOC and LFOC are automatically added if not specified */
index 46b7e2aef8954f05147d4c0c593c149e4ef3d7cf..3bda3ccc4139703fc992fdab5692236d19e6805b 100644 (file)
@@ -41,8 +41,8 @@
 #include <boost/test/unit_test.hpp>
 
 
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 
 
 /** Overlay two video-only bits of content, don't use the video on one and
index a57518b2d8aca5aa1c2f07800f960e85ba87ce8f..d0f2aaa6b51b52a764faed9e10cf1c235c1d4307 100644 (file)
@@ -39,8 +39,8 @@ using std::string;
 using std::vector;
 using boost::starts_with;
 using boost::split;
-using boost::dynamic_pointer_cast;
-using boost::shared_ptr;
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
 
 static
 void
index b5f082e743a7ddb4580ca716c3ed7f5a0a5fb79c..46bd016098a4bee1a41b283c917b64a5a0076ad1 100644 (file)
@@ -46,7 +46,7 @@
 using std::cout;
 using std::list;
 using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index e6adb288f8e8707e02353721fa459eb6f504e525..3c2df826c06c76a3f93533c5bd34f9b9b0f057e3 100644 (file)
@@ -26,7 +26,7 @@
 #include <boost/test/unit_test.hpp>
 
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (pulldown_detect_test1)
index 01afa5e92b13406c0e174d965e4885d0514a83be..aa8da8ba945a5b9406f32554adde3c4a68380b02 100644 (file)
@@ -37,7 +37,7 @@
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index a5a3ed83bda1b38a91b4278d6b1169f71c0bf0df..1223a217aec9fcbaa67bd00a6a7c2209704b7da4 100644 (file)
@@ -39,7 +39,7 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 static bool equal (dcp::FrameInfo a, ReelWriter const & writer, shared_ptr<InfoFileHandle> file, Frame frame, Eyes eyes)
index 01b2f9b4a08f7442bddaeb3f8b1dca2eab79374c..b609052b96863b9d239371fb00ca123d01fd7fda 100644 (file)
@@ -41,7 +41,7 @@ using std::list;
 using std::cout;
 using std::vector;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::function;
 using namespace dcpomatic;
 
index 2a96a148887f90e71f4dac656d780cbd61220704..488fada90694fde7189e211c53d46887dfa82bd9 100644 (file)
@@ -32,9 +32,9 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 
 /** Check for bug #1126 whereby making a new DCP using the same video asset as an old one
  *  corrupts the old one.
index 27d76ed31b624a700870853e5248b2c57773f7ec..81738c2eab005a94647983bdf11005e1bfffcea9 100644 (file)
@@ -25,8 +25,8 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** Check that if we remake a DCP having turned off subtitles the code notices
  *  and doesn't re-use the old video data.
index 125f46686f73264fc7e8cc1329a18d1784619dbf..fbbaba3f152c7158e71940d43d31dcc1a5a4b785 100644 (file)
@@ -34,7 +34,7 @@
 #include "lib/dcp_content_type.h"
 #include "lib/video_content.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (repeat_frame_test)
 {
index d1ff82ca62c3f75553f18f0f70d8e7985ef15a2c..a4be8b9b70376e433b76b83868a871ab9c330d7c 100644 (file)
@@ -29,8 +29,8 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 void check_within_n (int64_t a, int64_t b, int64_t n)
 {
index 893fad3b59d9d6110cb7372b1df086816c490509..2978d27f96ea8c259ef0c2d2bab81ee13555dd50 100644 (file)
@@ -31,7 +31,7 @@
 
 using std::pair;
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 resampler_test_one (int from, int to)
index 491b63723f8d2e725cda848390cdcdfe8a3335cc..809748e28efdc57d43a4429a49fdc9d9cd58027b 100644 (file)
@@ -32,7 +32,7 @@
 #include "test.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void scaling_test_for (shared_ptr<Film> film, shared_ptr<Content> content, float ratio, std::string image, string container)
 {
index aac8285a66992397b25eab589786d6c08dc636fd..f6a2a358cd6ff0c6e114395f0134855fc3e54f34 100644 (file)
@@ -4,8 +4,8 @@
 #include <boost/test/unit_test.hpp>
 
 using std::list;
-using boost::shared_ptr;
-using boost::weak_ptr;
+using std::shared_ptr;
+using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 9c432d3e2c738147b03e67ca1639af11b526e815..e1d893ccba4772c90871137f99286524bfb60aee 100644 (file)
@@ -39,7 +39,7 @@
 
 using std::string;
 using boost::lexical_cast;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 test_silence_padding (int channels)
index 4b137c9917d10a0f592597bf41f034d7fe7784ed..928d173df0305d4f7d1839d34c46307286c5fbb2 100644 (file)
@@ -34,7 +34,7 @@
 #include "lib/dcp_content_type.h"
 #include "lib/video_content.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (skip_frame_test)
 {
index 872136a7196c02f2beaed2b4962425e6bee3475a..b9aaba9d25d388fed38a80bbf066a9442f92f5ca 100644 (file)
 #include <dcp/raw_convert.h>
 #include <boost/thread.hpp>
 #include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
 #include <cstring>
 #include <iostream>
 
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::bind;
 
 
@@ -83,7 +82,7 @@ public:
        }
 
 private:
-       void handle (boost::shared_ptr<Socket> socket)
+       void handle (std::shared_ptr<Socket> socket)
        {
                boost::mutex::scoped_lock lm (_mutex);
                BOOST_REQUIRE (_size);
index 1ea4538ba258a6ef55bda49e66bbdd17909333a2..d07d70ba06e8259fd26f297e42bfde1b9e573eaf 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 /** Make a very short DCP with a single subtitle from .srt with no specified fonts */
index c07666aa04469e49aeb66a499028c96dc1dddd49..0756deed90aba2d1d6acf5b098e81e3dc5372a9a 100644 (file)
@@ -36,7 +36,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Make a DCP with subs from a .ssa file */
 BOOST_AUTO_TEST_CASE (ssa_subtitle_test1)
index b4b7c260b8015cb90ddcaa13ea77fc8f5b472e4f..a706906f894361cb9470a0d25940528fcbb06be0 100644 (file)
@@ -34,7 +34,7 @@ DCPOMATIC_ENABLE_WARNINGS
 
 using std::pair;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (stream_test)
 {
index 67bde8927be39aded93288208a24f9552ad177a9..ada358a6360be84c909dd64825f6815de8b8ea90 100644 (file)
@@ -26,8 +26,8 @@
 #include "lib/string_text_file_content.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /** Test parsing of UTF16 CR/LF input */
 BOOST_AUTO_TEST_CASE (subtitle_charset_test1)
index 50efb71a138391c012b4b0a5dda50bb2600ffe91..28c278c9424ef9715d67286707dc1790ba9ccfa4 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (subtitle_language_interop_test)
index a60d0675cdb04db0b258352380955cf04b636692..f79aa08f8b29d1874b39ff61dcd6a17169e4ccdb 100644 (file)
 #include "lib/film.h"
 #include "test.h"
 #include <boost/filesystem.hpp>
-#include <boost/shared_ptr.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 BOOST_AUTO_TEST_CASE (subtitle_metadata_test1)
index 23e03b7bc6ed8704d79c1148ba8566a498cc6d8a..e5f1667ef7ea8f6064738b822a39feb437b357e4 100644 (file)
@@ -33,8 +33,8 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /* Check that ReelNumber is setup correctly when making multi-reel subtitled DCPs */
 BOOST_AUTO_TEST_CASE (subtitle_reel_number_test)
index 2c5c364d0906169264f8843adc1fba3218024f0d..6e55ee62f6931b4d6c471465989c09bfb6b1bf93 100644 (file)
@@ -38,7 +38,7 @@
 using std::list;
 using std::string;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 /* Check that timings are done correctly for multi-reel DCPs with PNG subs */
@@ -80,12 +80,12 @@ BOOST_AUTO_TEST_CASE (subtitle_reel_test)
        list<shared_ptr<dcp::Reel> >::const_iterator i = reels.begin ();
        BOOST_REQUIRE ((*i)->main_subtitle());
        BOOST_REQUIRE ((*i)->main_subtitle()->asset());
-       shared_ptr<dcp::InteropSubtitleAsset> A = boost::dynamic_pointer_cast<dcp::InteropSubtitleAsset>((*i)->main_subtitle()->asset());
+       shared_ptr<dcp::InteropSubtitleAsset> A = std::dynamic_pointer_cast<dcp::InteropSubtitleAsset>((*i)->main_subtitle()->asset());
        BOOST_REQUIRE (A);
        ++i;
        BOOST_REQUIRE ((*i)->main_subtitle());
        BOOST_REQUIRE ((*i)->main_subtitle()->asset());
-       shared_ptr<dcp::InteropSubtitleAsset> B = boost::dynamic_pointer_cast<dcp::InteropSubtitleAsset>((*i)->main_subtitle()->asset());
+       shared_ptr<dcp::InteropSubtitleAsset> B = std::dynamic_pointer_cast<dcp::InteropSubtitleAsset>((*i)->main_subtitle()->asset());
        BOOST_REQUIRE (B);
 
        BOOST_REQUIRE_EQUAL (A->subtitles().size(), 1U);
index 966fc66b6f12910fd6cf9f47274ad4752a6b589c..3a615c8d83d4a3976cc636779c04b216fd8d3916 100644 (file)
@@ -23,7 +23,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 /** Check for no crash when trimming DCP subtitles (#1275) */
index a8c3eb1e47b13f3aee0d79fe8ff9913112fe54e2..19e8f978a481977ee51bb59c84252fe3c8bc9679 100644 (file)
@@ -68,9 +68,9 @@ using std::cout;
 using std::cerr;
 using std::list;
 using std::abs;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::scoped_array;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 4968d330162eff74327dd8d1dc8722fec46ed314..44ca706f69ca560d3e55d0f7260678ffc303b22c 100644 (file)
 
 */
 
+
 #include "lib/warnings.h"
 #include <boost/filesystem.hpp>
-#include <boost/shared_ptr.hpp>
+
 
 class Film;
 class Image;
@@ -36,10 +37,10 @@ public:
 
 extern bool wait_for_jobs ();
 extern void setup_test_config ();
-extern boost::shared_ptr<Film> new_test_film (std::string);
-extern boost::shared_ptr<Film> new_test_film2 (std::string);
+extern std::shared_ptr<Film> new_test_film (std::string);
+extern std::shared_ptr<Film> new_test_film2 (std::string);
 extern void check_dcp (boost::filesystem::path, boost::filesystem::path);
-extern void check_dcp (boost::filesystem::path, boost::shared_ptr<const Film>);
+extern void check_dcp (boost::filesystem::path, std::shared_ptr<const Film>);
 extern void check_file (boost::filesystem::path ref, boost::filesystem::path check);
 extern void check_wav_file (boost::filesystem::path ref, boost::filesystem::path check);
 extern void check_mxf_audio_file (boost::filesystem::path ref, boost::filesystem::path check);
@@ -49,19 +50,19 @@ extern void check_file (boost::filesystem::path, boost::filesystem::path);
 extern void check_ffmpeg (boost::filesystem::path, boost::filesystem::path, int audio_tolerance);
 extern void check_image (boost::filesystem::path, boost::filesystem::path, double threshold = 4);
 extern boost::filesystem::path test_film_dir (std::string);
-extern void write_image (boost::shared_ptr<const Image> image, boost::filesystem::path file);
-boost::filesystem::path dcp_file (boost::shared_ptr<const Film> film, std::string prefix);
+extern void write_image (std::shared_ptr<const Image> image, boost::filesystem::path file);
+boost::filesystem::path dcp_file (std::shared_ptr<const Film> film, std::string prefix);
 void check_one_frame (boost::filesystem::path dcp, int64_t index, boost::filesystem::path ref);
-extern boost::filesystem::path subtitle_file (boost::shared_ptr<Film> film);
+extern boost::filesystem::path subtitle_file (std::shared_ptr<Film> film);
 extern void make_random_file (boost::filesystem::path path, size_t size);
 
 class LogSwitcher
 {
 public:
-       LogSwitcher (boost::shared_ptr<Log> log);
+       LogSwitcher (std::shared_ptr<Log> log);
        ~LogSwitcher ();
 
 private:
-       boost::shared_ptr<Log> _old;
+       std::shared_ptr<Log> _old;
 };
 
index b181d15cbceb375d5606904dc332a86730fe1363..e6a91a91060439d705e14785bb009b1be4a7f401 100644 (file)
@@ -37,7 +37,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Basic sanity check of 3D_LEFT_RIGHT */
 BOOST_AUTO_TEST_CASE (threed_test1)
index 8c57a9fdbbb3dfdb4b417ea12eb1bcc813f65231..d0cf63bb28eda8d2b2aff819d8b700e7c4e4f997 100644 (file)
@@ -33,7 +33,7 @@
 
 using std::string;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 using namespace dcpomatic;
 
 static string const xml = "<Content>"
index 27b4b5d144cd5194c3fa06abb2bb94bfdaea12b2..23eb3ca8e66fafbb2163d42978fbb29fd4824b4c 100644 (file)
@@ -43,8 +43,8 @@
 
 using std::list;
 using std::cout;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 
 /** Test start/end trim and positioning of some audio content */
index 085a0dd0417435cf923c7d026bd8f683c47b1826..35224ff234a6c2f0bceceeed708834d5bdaac4c6 100644 (file)
@@ -34,7 +34,7 @@
 #include "lib/upmixer_a.h"
 #include "test.h"
 
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 9f03b6a4714a6120827ced463daa8af740dc5cde..56de057a68bc76997e5bb4a6a1289ecc480ed023 100644 (file)
@@ -34,7 +34,7 @@
 using std::string;
 using std::vector;
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 5d16e3be5795efbf571bbd6743232950ebbd5aa6..7a9c302637e521429881d3c3e4582bf978cd032b 100644 (file)
@@ -38,7 +38,7 @@
 
 using std::vector;
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 BOOST_AUTO_TEST_CASE (vf_kdm_test)
 {
index ad4bcf8a409fe08c7a86f87b7fa48873e10ea81a..9fc02412a62d3e5ba97c50ea498797bb532cb501 100644 (file)
@@ -43,8 +43,8 @@
 using std::list;
 using std::string;
 using std::cout;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 
 /** Test the logic which decides whether a DCP can be referenced or not */
index 056a500eee130a95bb160b9814c7985776a6beea..95b69d2aa2a3cca6dcf8cff7699b16802d271fb3 100644 (file)
@@ -55,12 +55,12 @@ using std::make_pair;
 using std::max;
 using std::pair;
 using std::string;
-using boost::dynamic_pointer_cast;
+using std::dynamic_pointer_cast;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
-using boost::shared_ptr;
+using std::shared_ptr;
 
 
 static
index 84c3f47339293ffa2d6772206e94d67e92db3f56..e5241b68783302ee1d7181c42796f4218ffb2f5c 100644 (file)
@@ -32,8 +32,8 @@
 #include <dcp/mono_picture_asset.h>
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 static boost::filesystem::path ref_mxf = "test/data/scaling_test_185_185/j2c_c75af074-2809-453c-9192-6affb76b4ba3.mxf";