Fixed "deprecated-copy" warning on GCC 9 (fixes #1184)

This commit is contained in:
Benoit Blanchon
2020-02-13 11:07:23 +01:00
parent 66b12da4e7
commit d2a67f362f
5 changed files with 13 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
FORCE_INLINE MemberProxy(TObject variant, TStringRef key)
: _object(variant), _key(key) {}
FORCE_INLINE MemberProxy(const MemberProxy &src)
: _object(src._object), _key(src._key) {}
FORCE_INLINE operator VariantConstRef() const {
return getUpstreamMember();
}