mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Make OptionValue explicitly copyable
Since OptionValue (& its base classes) have user-declared dtors, use of the implicit copy ctor/assignment operator is deprecated in C++11. Provide them explicitly (defaulted) to avoid depending on this deprecated feature. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -356,6 +356,9 @@ struct GenericOptionValue {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
~GenericOptionValue() = default;
|
~GenericOptionValue() = default;
|
||||||
|
GenericOptionValue() = default;
|
||||||
|
GenericOptionValue(const GenericOptionValue&) = default;
|
||||||
|
GenericOptionValue &operator=(const GenericOptionValue &) = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
@@ -394,6 +397,8 @@ template <class DataType> class OptionValueCopy : public GenericOptionValue {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
~OptionValueCopy() = default;
|
~OptionValueCopy() = default;
|
||||||
|
OptionValueCopy(const OptionValueCopy&) = default;
|
||||||
|
OptionValueCopy &operator=(const OptionValueCopy&) = default;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OptionValueCopy() : Valid(false) {}
|
OptionValueCopy() : Valid(false) {}
|
||||||
@@ -428,6 +433,9 @@ struct OptionValueBase<DataType, false> : OptionValueCopy<DataType> {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
~OptionValueBase() = default;
|
~OptionValueBase() = default;
|
||||||
|
OptionValueBase() = default;
|
||||||
|
OptionValueBase(const OptionValueBase&) = default;
|
||||||
|
OptionValueBase &operator=(const OptionValueBase&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Top-level option class.
|
// Top-level option class.
|
||||||
|
Reference in New Issue
Block a user