t
Fork of mbed-dev by
Diff: drivers/SerialBase.h
- Revision:
- 169:9672193075cf
- Parent:
- 168:e84263d55307
- Child:
- 175:b96e65c34a4d
diff -r e84263d55307 -r 9672193075cf drivers/SerialBase.h --- a/drivers/SerialBase.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/SerialBase.h Thu Jul 06 15:42:05 2017 +0100 @@ -23,6 +23,7 @@ #include "Callback.h" #include "serial_api.h" #include "mbed_toolchain.h" +#include "platform/NonCopyable.h" #if DEVICE_SERIAL_ASYNCH #include "CThunk.h" @@ -38,7 +39,7 @@ * @note Synchronization level: Set by subclass * @ingroup drivers */ -class SerialBase { +class SerialBase : private NonCopyable<SerialBase> { public: /** Set the baud rate of the serial port