Add missing = operator
implicit assignment operator is depricated, these classes were missing explicit definitions of this operator. It is causing warnings, specifically -Werror=deprecated-copy
This commit is contained in:
@@ -374,6 +374,8 @@ struct CustomExtension {
|
||||
mValues(other.mValues) {
|
||||
// empty
|
||||
}
|
||||
|
||||
CustomExtension& operator=(const CustomExtension&) = default;
|
||||
};
|
||||
|
||||
//! Base class for all glTF top-level objects
|
||||
|
||||
@@ -86,6 +86,13 @@ class Int128
|
||||
|
||||
Int128(const Int128 &val): hi(val.hi), lo(val.lo){}
|
||||
|
||||
Int128 operator = (const Int128 &val)
|
||||
{
|
||||
lo = val.lo;
|
||||
hi = val.hi;
|
||||
return val;
|
||||
}
|
||||
|
||||
long64 operator = (const long64 &val)
|
||||
{
|
||||
lo = val;
|
||||
|
||||
Reference in New Issue
Block a user