The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: FunctionPointer.h
- Revision:
- 123:b0220dba8be7
- Parent:
- 122:f9eeca106725
- Child:
- 124:2241e3a39974
diff -r f9eeca106725 -r b0220dba8be7 FunctionPointer.h --- a/FunctionPointer.h Thu Jul 07 14:34:11 2016 +0100 +++ b/FunctionPointer.h Fri Aug 12 13:04:35 2016 +0200 @@ -17,6 +17,7 @@ #define MBED_FUNCTIONPOINTER_H #include "Callback.h" +#include "toolchain.h" #include <string.h> #include <stdint.h> @@ -28,10 +29,12 @@ template <typename R, typename A1> class FunctionPointerArg1 : public Callback<R(A1)> { public: + MBED_DEPRECATED("FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>") FunctionPointerArg1(R (*function)(A1) = 0) : Callback<R(A1)>(function) {} template<typename T> + MBED_DEPRECATED("FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>") FunctionPointerArg1(T *object, R (T::*member)(A1)) : Callback<R(A1)>(object, member) {} @@ -43,10 +46,12 @@ template <typename R> class FunctionPointerArg1<R, void> : public Callback<R()> { public: + MBED_DEPRECATED("FunctionPointer has been replaced by Callback<void()>") FunctionPointerArg1(R (*function)() = 0) : Callback<R()>(function) {} template<typename T> + MBED_DEPRECATED("FunctionPointer has been replaced by Callback<void()>") FunctionPointerArg1(T *object, R (T::*member)()) : Callback<R()>(object, member) {}