We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546b4c9 commit c236205Copy full SHA for c236205
include/modbuspp/message.h
@@ -20,6 +20,7 @@
20
#include <stdexcept>
21
#include <vector>
22
#include <iostream>
23
+#include <functional>
24
#include <modbuspp/global.h>
25
#include <modbuspp/data.h>
26
@@ -46,7 +47,7 @@ namespace Modbus {
46
47
* @return 1 if the message has been completely processed, 0 if the
48
* message has not been processed, -1 if error.
49
*/
- typedef int (*Callback) (Message * msg, Device * sender);
50
+ using Callback = std::function<int(Message*, Device*)>;
51
52
/**
53
* @brief Constructors
0 commit comments