forked from bblanchon/ArduinoJson
committed by
Benoit Blanchon
parent
c99af48e97
commit
57354de831
@@ -5,6 +5,7 @@ HEAD
|
|||||||
----
|
----
|
||||||
|
|
||||||
* Improve error messages when using `char` or `char*` (issue #2043)
|
* 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)
|
v6.21.5 (2024-01-10)
|
||||||
-------
|
-------
|
||||||
|
@@ -38,16 +38,15 @@ struct has_data<T,
|
|||||||
const char*>::value>::type>
|
const char*>::value>::type>
|
||||||
: true_type {};
|
: true_type {};
|
||||||
|
|
||||||
// size_t length() const
|
// unsigned int length() const
|
||||||
// - String
|
// - String
|
||||||
|
|
||||||
template <class T, class = void>
|
template <class T, class = void>
|
||||||
struct has_length : false_type {};
|
struct has_length : false_type {};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct has_length<
|
struct has_length<T, typename enable_if<is_unsigned<
|
||||||
T, typename enable_if<
|
decltype(declval<const T>().length())>::value>::type>
|
||||||
is_same<decltype(declval<const T>().length()), size_t>::value>::type>
|
|
||||||
: true_type {};
|
: true_type {};
|
||||||
|
|
||||||
// size_t size() const
|
// size_t size() const
|
||||||
|
Reference in New Issue
Block a user