Forked.
Fork of mbed-dev by
Diff: platform/CallChain.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
--- a/platform/CallChain.h Wed Jun 21 17:46:44 2017 +0100 +++ b/platform/CallChain.h Thu Jul 06 15:42:05 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; };