File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 17
17
#define MBED_FUNCTIONPOINTER_H
18
18
19
19
#include " Callback.h"
20
+ #include " toolchain.h"
20
21
#include < string.h>
21
22
#include < stdint.h>
22
23
@@ -28,10 +29,12 @@ namespace mbed {
28
29
template <typename R, typename A1>
29
30
class FunctionPointerArg1 : public Callback <R(A1)> {
30
31
public:
32
+ MBED_DEPRECATED (" FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>" )
31
33
FunctionPointerArg1 (R (*function)(A1) = 0 )
32
34
: Callback<R(A1)>(function) {}
33
35
34
36
template <typename T>
37
+ MBED_DEPRECATED (" FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>" )
35
38
FunctionPointerArg1 (T *object, R (T::*member)(A1))
36
39
: Callback<R(A1)>(object, member) {}
37
40
@@ -43,10 +46,12 @@ class FunctionPointerArg1 : public Callback<R(A1)> {
43
46
template <typename R>
44
47
class FunctionPointerArg1 <R, void > : public Callback<R()> {
45
48
public:
49
+ MBED_DEPRECATED (" FunctionPointer has been replaced by Callback<void()>" )
46
50
FunctionPointerArg1 (R (*function)() = 0 )
47
51
: Callback<R()>(function) {}
48
52
49
53
template <typename T>
54
+ MBED_DEPRECATED (" FunctionPointer has been replaced by Callback<void()>" )
50
55
FunctionPointerArg1 (T *object, R (T::*member)())
51
56
: Callback<R()>(object, member) {}
52
57
You can’t perform that action at this time.
0 commit comments