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 1717#define MBED_FUNCTIONPOINTER_H
1818
1919#include " Callback.h"
20+ #include " toolchain.h"
2021#include < string.h>
2122#include < stdint.h>
2223
@@ -28,10 +29,12 @@ namespace mbed {
2829template <typename R, typename A1>
2930class FunctionPointerArg1 : public Callback <R(A1)> {
3031public:
32+ MBED_DEPRECATED (" FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>" )
3133 FunctionPointerArg1 (R (*function)(A1) = 0 )
3234 : Callback<R(A1)>(function) {}
3335
3436 template <typename T>
37+ MBED_DEPRECATED (" FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>" )
3538 FunctionPointerArg1 (T *object, R (T::*member)(A1))
3639 : Callback<R(A1)>(object, member) {}
3740
@@ -43,10 +46,12 @@ class FunctionPointerArg1 : public Callback<R(A1)> {
4346template <typename R>
4447class FunctionPointerArg1 <R, void > : public Callback<R()> {
4548public:
49+ MBED_DEPRECATED (" FunctionPointer has been replaced by Callback<void()>" )
4650 FunctionPointerArg1 (R (*function)() = 0 )
4751 : Callback<R()>(function) {}
4852
4953 template <typename T>
54+ MBED_DEPRECATED (" FunctionPointer has been replaced by Callback<void()>" )
5055 FunctionPointerArg1 (T *object, R (T::*member)())
5156 : Callback<R()>(object, member) {}
5257
You can’t perform that action at this time.
0 commit comments