mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added comparisons between JsonVariants
				
					
				
			This commit is contained in:
		| @@ -56,14 +56,6 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >, | ||||
|     return *this; | ||||
|   } | ||||
|  | ||||
|   FORCE_INLINE bool operator==(VariantConstRef rhs) const { | ||||
|     return static_cast<VariantConstRef>(getUpstreamMember()) == rhs; | ||||
|   } | ||||
|  | ||||
|   FORCE_INLINE bool operator!=(VariantConstRef rhs) const { | ||||
|     return static_cast<VariantConstRef>(getUpstreamMember()) != rhs; | ||||
|   } | ||||
|  | ||||
|   FORCE_INLINE void clear() const { | ||||
|     getUpstreamMember().clear(); | ||||
|   } | ||||
| @@ -82,11 +74,6 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >, | ||||
|     return getUpstreamMember(); | ||||
|   } | ||||
|  | ||||
|   template <typename T> | ||||
|   FORCE_INLINE int compare(const T &rhs) const { | ||||
|     return getUpstreamMember().template compare<T>(rhs); | ||||
|   } | ||||
|  | ||||
|   template <typename TValue> | ||||
|   FORCE_INLINE bool is() const { | ||||
|     return getUpstreamMember().template is<TValue>(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user