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: platform/CallChain.h
- Revision:
- 146:22da6e220af6
- Parent:
- 145:64910690c574
--- a/platform/CallChain.h Wed Jun 21 17:31:38 2017 +0100 +++ b/platform/CallChain.h Thu Jul 06 15:30:22 2017 +0100 @@ -18,6 +18,7 @@ #include "platform/Callback.h" #include "platform/mbed_toolchain.h" +#include "platform/NonCopyable.h" #include <string.h> namespace mbed { @@ -65,7 +66,7 @@ typedef Callback<void()> *pFunctionPointer_t; class CallChainLink; -class CallChain { +class CallChain : private NonCopyable<CallChain> { public: /** Create an empty chain * @@ -178,10 +179,7 @@ return get(i); } - /* disallow copy constructor and assignment operators */ private: - CallChain(const CallChain&); - CallChain & operator = (const CallChain&); CallChainLink *_chain; };