mbed
Fork of mbed-dev by
Diff: drivers/Serial.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
--- a/drivers/Serial.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/Serial.h Thu Jul 06 15:42:05 2017 +0100 @@ -24,6 +24,7 @@ #include "SerialBase.h" #include "PlatformMutex.h" #include "serial_api.h" +#include "platform/NonCopyable.h" namespace mbed { /** \addtogroup drivers */ @@ -49,7 +50,7 @@ * @endcode * @ingroup drivers */ -class Serial : public SerialBase, public Stream { +class Serial : public SerialBase, public Stream, private NonCopyable<Serial> { public: #if DEVICE_SERIAL_ASYNCH