mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-30 10:47:34 +02:00
committed by
Benoit Blanchon
parent
c99af48e97
commit
57354de831
@ -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)
|
||||
-------
|
||||
|
@ -38,16 +38,15 @@ struct has_data<T,
|
||||
const char*>::value>::type>
|
||||
: true_type {};
|
||||
|
||||
// size_t length() const
|
||||
// unsigned int length() const
|
||||
// - String
|
||||
|
||||
template <class T, class = void>
|
||||
struct has_length : false_type {};
|
||||
|
||||
template <class T>
|
||||
struct has_length<
|
||||
T, typename enable_if<
|
||||
is_same<decltype(declval<const T>().length()), size_t>::value>::type>
|
||||
struct has_length<T, typename enable_if<is_unsigned<
|
||||
decltype(declval<const T>().length())>::value>::type>
|
||||
: true_type {};
|
||||
|
||||
// size_t size() const
|
||||
|
Reference in New Issue
Block a user