Fixed error expected unqualified-id on GCC 11 (fixes #1622)

This commit is contained in:
Benoit Blanchon
2021-08-03 11:39:02 +02:00
parent 1b74ad0731
commit f570fe8c37
6 changed files with 48 additions and 3 deletions

View File

@ -45,8 +45,7 @@ class StringAdapter< ::String> {
template <>
class StringAdapter< ::StringSumHelper> : public StringAdapter< ::String> {
public:
StringAdapter< ::StringSumHelper>(const ::String& s)
: StringAdapter< ::String>(s) {}
StringAdapter(const ::String& s) : StringAdapter< ::String>(s) {}
};
} // namespace ARDUINOJSON_NAMESPACE

View File

@ -45,7 +45,7 @@ class StringAdapter<const char*> {
template <int N>
class StringAdapter<const char[N]> : public StringAdapter<const char*> {
public:
StringAdapter<const char[N]>(const char* s) : StringAdapter<const char*>(s) {}
StringAdapter(const char* s) : StringAdapter<const char*>(s) {}
};
} // namespace ARDUINOJSON_NAMESPACE