Some compilers don't like x = {} where x is a boost::optional<string>
[libdcp.git] / src / atmos_asset_writer.h
index c78174f1d59d9e83112633e1ce31a63e88eaee52..f70c42f5208236eb411ef6ed6c23f40506665f20 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
-#ifndef LIBDCP_ATMOS_ASSET_WRITER_H
-#define LIBDCP_ATMOS_ASSET_WRITER_H
 
 /** @file  src/atmos_asset_writer.h
- *  @brief AtmosAssetWriter class.
+ *  @brief AtmosAssetWriter class
  */
 
+
+#ifndef LIBDCP_ATMOS_ASSET_WRITER_H
+#define LIBDCP_ATMOS_ASSET_WRITER_H
+
+
 #include "asset_writer.h"
 #include "types.h"
 #include "atmos_frame.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 
+
 namespace dcp {
 
+
 class AtmosAsset;
 
+
 /** @class AtmosAssetWriter
  *  @brief A helper class for writing to AtmosAssets.
  *
@@ -56,7 +62,7 @@ class AtmosAsset;
 class AtmosAssetWriter : public AssetWriter
 {
 public:
-       void write (boost::shared_ptr<const AtmosFrame> frame);
+       void write (std::shared_ptr<const AtmosFrame> frame);
        void write (uint8_t const * data, int size);
        bool finalize ();
 
@@ -69,11 +75,13 @@ private:
           ASDCP headers
        */
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        AtmosAsset* _asset;
 };
 
+
 }
 
+
 #endif