From 57354de8317fdb07d09ae8b76786c1aeff94c2a4 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Wed, 1 May 2024 13:59:55 +0200 Subject: [PATCH] Make string support even more generic Closes #2084 --- CHANGELOG.md | 1 + src/ArduinoJson/Strings/StringTraits.hpp | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1758f310..8366b8f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ HEAD ---- * Improve error messages when using `char` or `char*` (issue #2043) +* Make string support even more generic (PR #2084 by @d-a-v) v6.21.5 (2024-01-10) ------- diff --git a/src/ArduinoJson/Strings/StringTraits.hpp b/src/ArduinoJson/Strings/StringTraits.hpp index 45804cd1..9fa5577a 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