diff --git a/CHANGELOG.md b/CHANGELOG.md index a04c48bd..d2c79b10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ArduinoJson: change log * Add `ARDUINOJSON_STRING_LENGTH_SIZE` to the namespace name * Add MsgPack bin8/bin16/bin32 support (PR #2078 by @Sanae6) +* Make string support even more generic (PR #2084 by @d-a-v) v7.0.4 (2024-03-12) ------ diff --git a/src/ArduinoJson/Strings/StringTraits.hpp b/src/ArduinoJson/Strings/StringTraits.hpp index b66ce616..530dc6d3 100644 --- a/src/ArduinoJson/Strings/StringTraits.hpp +++ b/src/ArduinoJson/Strings/StringTraits.hpp @@ -38,16 +38,15 @@ struct has_data::value>::type> : true_type {}; -// size_t length() const +// unsigned int length() const // - String template struct has_length : false_type {}; template -struct has_length< - T, typename enable_if< - is_same().length()), size_t>::value>::type> +struct has_length().length())>::value>::type> : true_type {}; // size_t size() const