mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed error Pe070 "incomplete type is not allowed" on IAR (fixes #1560)
This commit is contained in:
		| @@ -5,6 +5,7 @@ HEAD | |||||||
| ---- | ---- | ||||||
|  |  | ||||||
| * Fixed support for `volatile float` and `volatile double` (issue #1557) | * Fixed support for `volatile float` and `volatile double` (issue #1557) | ||||||
|  | * Fixed error `[Pe070]: incomplete type is not allowed` on IAR (issue #1560) | ||||||
|  |  | ||||||
| v6.18.0 (2021-05-05) | v6.18.0 (2021-05-05) | ||||||
| ------- | ------- | ||||||
|   | |||||||
| @@ -140,4 +140,9 @@ inline VariantConstRef operator|(VariantConstRef preferedValue, | |||||||
|                                  VariantConstRef defaultValue) { |                                  VariantConstRef defaultValue) { | ||||||
|   return preferedValue ? preferedValue : defaultValue; |   return preferedValue ? preferedValue : defaultValue; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // Out of class definition to avoid #1560 | ||||||
|  | inline bool VariantRef::set(char value) const { | ||||||
|  |   return set<signed char>(value); | ||||||
|  | } | ||||||
| }  // namespace ARDUINOJSON_NAMESPACE | }  // namespace ARDUINOJSON_NAMESPACE | ||||||
|   | |||||||
| @@ -88,11 +88,9 @@ class VariantRef : public VariantRefBase<VariantData>, | |||||||
|     return Converter<T>::toJson(value, *this); |     return Converter<T>::toJson(value, *this); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   FORCE_INLINE bool ARDUINOJSON_DEPRECATED( |   bool ARDUINOJSON_DEPRECATED( | ||||||
|       "Support for char is deprecated, use int8_t or uint8_t instead") |       "Support for char is deprecated, use int8_t or uint8_t instead") | ||||||
|       set(char value) const { |       set(char value) const; | ||||||
|     return set<signed char>(value); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   template <typename T> |   template <typename T> | ||||||
|   FORCE_INLINE bool set(T *value) const { |   FORCE_INLINE bool set(T *value) const { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user