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.

Revision:
146:22da6e220af6
Parent:
145:64910690c574
--- a/platform/Stream.h	Wed Jun 21 17:31:38 2017 +0100
+++ b/platform/Stream.h	Thu Jul 06 15:30:22 2017 +0100
@@ -19,6 +19,7 @@
 #include "platform/platform.h"
 #include "platform/FileLike.h"
 #include "platform/FileHandle.h"
+#include "platform/NonCopyable.h"
 #include <cstdio>
 #include <cstdarg>
 
@@ -36,7 +37,7 @@
  * @note Synchronization level: Set by subclass
  * @ingroup platform
  */
-class Stream : public FileLike {
+class Stream : public FileLike, private NonCopyable<Stream> {
 
 public:
     Stream(const char *name=NULL);
@@ -80,11 +81,6 @@
     virtual void unlock() {
         // Stub
     }
-
-    /* disallow copy constructor and assignment operators */
-private:
-    Stream(const Stream&);
-    Stream & operator = (const Stream&);
 };
 
 } // namespace mbed