test

Fork of mbed-dev by mbed official

Revision:
169:9672193075cf
Parent:
168: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;
 };