Fixed error Pe070 "incomplete type is not allowed" on IAR (fixes #1560)

This commit is contained in:
Benoit Blanchon
2021-05-19 15:07:59 +02:00
parent 622e7dd287
commit af3bb131c8
3 changed files with 8 additions and 4 deletions

View File

@@ -140,4 +140,9 @@ inline VariantConstRef operator|(VariantConstRef preferedValue,
VariantConstRef 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