8000 Fixed error "attributes are not allowed on a function-definition" · joglosemarduino/ArduinoJson@9862048 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9862048

Browse files
committed
Fixed error "attributes are not allowed on a function-definition"
1 parent ebc52a5 commit 9862048

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
ArduinoJson: change log
22
=======================
33

4+
HEAD
5+
----
6+
7+
* Fixed error "attributes are not allowed on a function-definition"
8+
49
v6.10.0 (2019-03-22)
510
-------
611

src/ArduinoJson/MsgPack/MsgPackSerializer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class MsgPackSerializer {
2424
}
2525

2626
template <typename T>
27-
typename enable_if<sizeof(T) == 8>::type visitFloat(T value64)
28-
ARDUINOJSON_NO_SANITIZE("float-cast-overflow") {
27+
ARDUINOJSON_NO_SANITIZE("float-cast-overflow")
28+
typename enable_if<sizeof(T) == 8>::type visitFloat(T value64) {
2929
float value32 = float(value64);
3030
if (value32 == value64) {
3131
writeByte(0xCA);

0 commit comments

Comments
 (0)
0