mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 08:48:30 +01:00 
			
		
		
		
	Reorganized polyfills
This commit is contained in:
		| @@ -6,7 +6,7 @@ | ||||
|  | ||||
| #include "Configuration.hpp" | ||||
| #include "JsonVariantBase.hpp" | ||||
| #include "TypeTraits/EnableIf.hpp" | ||||
| #include "Polyfills/type_traits.hpp" | ||||
|  | ||||
| #ifdef _MSC_VER | ||||
| #pragma warning(push) | ||||
| @@ -36,7 +36,7 @@ class JsonObjectSubscript | ||||
|   // TValue = bool, char, long, int, short, float, double, | ||||
|   //          std::string, String, JsonArray, JsonObject | ||||
|   template <typename TValue> | ||||
|   FORCE_INLINE typename EnableIf<!IsArray<TValue>::value, this_type&>::type | ||||
|   FORCE_INLINE typename enable_if<!is_array<TValue>::value, this_type&>::type | ||||
|   operator=(const TValue& src) { | ||||
|     _object.set(_key, src); | ||||
|     return *this; | ||||
| @@ -70,7 +70,7 @@ class JsonObjectSubscript | ||||
|   // TValue = bool, char, long, int, short, float, double, RawJson, JsonVariant, | ||||
|   //          std::string, String, JsonArray, JsonObject | ||||
|   template <typename TValue> | ||||
|   FORCE_INLINE typename EnableIf<!IsArray<TValue>::value, bool>::type set( | ||||
|   FORCE_INLINE typename enable_if<!is_array<TValue>::value, bool>::type set( | ||||
|       const TValue& value) { | ||||
|     return _object.set(_key, value); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user