Merge pull request #1692 from Kangz/fix_default_copy_dtor
Fix IVariant -Wdeprecated-copy-with-dtor
This commit is contained in:
commit
9cdeefb5e3
@ -417,6 +417,11 @@ struct IVariant
|
|||||||
virtual ~IVariant() = default;
|
virtual ~IVariant() = default;
|
||||||
virtual IVariant *clone(ObjectPoolBase *pool) = 0;
|
virtual IVariant *clone(ObjectPoolBase *pool) = 0;
|
||||||
ID self = 0;
|
ID self = 0;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
IVariant() = default;
|
||||||
|
IVariant(const IVariant&) = default;
|
||||||
|
IVariant &operator=(const IVariant&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SPIRV_CROSS_DECLARE_CLONE(T) \
|
#define SPIRV_CROSS_DECLARE_CLONE(T) \
|
||||||
|
Loading…
Reference in New Issue
Block a user