mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 08:48:30 +01:00 
			
		
		
		
	Fixed dangling reference in MemberProxy and ElementProxy (fixes #1120)
This commit is contained in:
		| @@ -141,11 +141,10 @@ class JsonDocument : public Visitable { | ||||
|   // operator[](const std::string&) | ||||
|   // operator[](const String&) | ||||
|   template <typename TString> | ||||
|   FORCE_INLINE | ||||
|       typename enable_if<IsString<TString>::value, | ||||
|                          MemberProxy<JsonDocument&, const TString&> >::type | ||||
|       operator[](const TString& key) { | ||||
|     return MemberProxy<JsonDocument&, const TString&>(*this, key); | ||||
|   FORCE_INLINE typename enable_if<IsString<TString>::value, | ||||
|                                   MemberProxy<JsonDocument&, TString> >::type | ||||
|   operator[](const TString& key) { | ||||
|     return MemberProxy<JsonDocument&, TString>(*this, key); | ||||
|   } | ||||
|  | ||||
|   // operator[](char*) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user