From ae93402312da05ffdfeff42a60b63954646ab3aa Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 23 Apr 2021 09:16:15 -0400 Subject: 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. --- src/core/file_sys/program_metadata.h | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- cgit v1.2.3