diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-23 22:35:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-23 22:35:07 +0200 |
| commit | 59ba9648836cb96795dc93531967737f0ecea053 (patch) | |
| tree | 83e8090a53ec0d1dc3eaedf4c044842a53d92ba6 /src/dcp.cc | |
| parent | e3db3771b27e6b622f04ba79abfde829ebd85876 (diff) | |
Add move constructor.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -108,6 +108,28 @@ DCP::DCP (boost::filesystem::path directory) } +DCP::DCP (DCP&& other) + : _directory(std::move(other._directory)) + , _cpls(std::move(other._cpls)) + , _pkls(std::move(other._pkls)) + , _asset_map(std::move(other._asset_map)) + , _standard(std::move(other._standard)) +{ + +} + + +dcp::DCP& DCP::operator= (DCP&& other) +{ + _directory = std::move(other._directory); + _cpls = std::move(other._cpls); + _pkls = std::move(other._pkls); + _asset_map = std::move(other._asset_map); + _standard = std::move(other._standard); + return *this; +} + + void DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf_type) { |
