mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Fixed ambiguous overload with JsonArraySubscript and JsonObjectSubscript (issue #122)
This commit is contained in:
@@ -68,10 +68,10 @@ class JsonSubscriptBase : public JsonVariantBase<TImpl> {
|
||||
}
|
||||
|
||||
FORCE_INLINE TImpl& operator=(JsonVariant value) {
|
||||
return assign<JsonVariant>(value);
|
||||
return assign<const JsonVariant&>(value);
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
template <typename TValue>
|
||||
FORCE_INLINE TImpl& assign(TValue value) {
|
||||
TImpl* that = static_cast<TImpl*>(this);
|
||||
|
||||
Reference in New Issue
Block a user