mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
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.
This commit is contained in:
parent
607ff3489c
commit
ae93402312
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ public:
|
||||||
ProgramMetadata();
|
ProgramMetadata();
|
||||||
~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
|
/// Gets a default ProgramMetadata configuration, should only be used for homebrew formats where
|
||||||
/// we do not have an NPDM file
|
/// we do not have an NPDM file
|
||||||
static ProgramMetadata GetDefault();
|
static ProgramMetadata GetDefault();
|
||||||
|
|
Loading…
Reference in a new issue