Fixed GCC warning "declaration shadows a member" (issue #103)

This commit is contained in:
Benoit Blanchon
2015-09-01 22:26:51 +02:00
parent 5a4d993f7d
commit 04b8781c8d
3 changed files with 6 additions and 5 deletions

View File

@@ -74,9 +74,9 @@ class JsonSubscriptBase : public JsonVariantBase<TImpl> {
private:
template <typename TValue>
FORCE_INLINE TImpl& assign(TValue value) {
TImpl* impl = static_cast<TImpl*>(this);
impl->template set<TValue>(value);
return *impl;
TImpl* that = static_cast<TImpl*>(this);
that->template set<TValue>(value);
return *that;
}
};
}