diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-23 09:16:15 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-23 09:16:17 -0400 |
commit | ae93402312da05ffdfeff42a60b63954646ab3aa (patch) | |
tree | fa731622d9d48da203502f0fc3dab28aba5d1938 /src | |
parent | 607ff3489c540a9ec72f37f06d550e45641135d7 (diff) |
program_metadata: Explicitly specify copy/move functions
The generation of the copy assignment operators are deprecated on being
generated when a user-provided destructor is present.
We can explicitly specify that we desire this behavior to keep the class
forward compatible with future standards.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/program_metadata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h index 455532567..1ddf00c14 100644 --- a/src/core/file_sys/program_metadata.h +++ b/src/core/file_sys/program_metadata.h @@ -44,6 +44,12 @@ public: ProgramMetadata(); ~ProgramMetadata(); + ProgramMetadata(const ProgramMetadata&) = default; + ProgramMetadata& operator=(const ProgramMetadata&) = default; + + ProgramMetadata(ProgramMetadata&&) = default; + ProgramMetadata& operator=(ProgramMetadata&&) = default; + /// Gets a default ProgramMetadata configuration, should only be used for homebrew formats where /// we do not have an NPDM file static ProgramMetadata GetDefault(); |