File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ArduinoJson: change log
3
3
4
4
* Add ` ARDUINOJSON_STRING_LENGTH_SIZE ` to the namespace name
5
5
* Add MsgPack bin8/bin16/bin32 support (PR #2078 by @Sanae6 )
6
+ * Make string support even more generic (PR #2084 by @d-a-v )
6
7
7
8
v7.0.4 (2024-03-12)
8
9
------
Original file line number Diff line number Diff line change @@ -38,16 +38,15 @@ struct has_data<T,
38
38
const char *>::value>::type>
39
39
: true_type {};
40
40
41
- // size_t length() const
41
+ // unsigned int length() const
42
42
// - String
43
43
44
44
template <class T , class = void >
45
45
struct has_length : false_type {};
46
46
47
47
template <class T >
48
- struct has_length <
49
- T, typename enable_if<
50
- is_same<decltype (declval<const T>().length()), size_t >::value>::type>
48
+ struct has_length <T, typename enable_if<is_unsigned<
49
+ decltype (declval<const T>().length())>::value>::type>
51
50
: true_type {};
52
51
53
52
// size_t size() const
You can’t perform that action at this time.
0 commit comments