mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: drivers/BusOut.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
diff -r e84263d55307 -r 9672193075cf drivers/BusOut.h --- a/drivers/BusOut.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/BusOut.h Thu Jul 06 15:42:05 2017 +0100 @@ -18,6 +18,7 @@ #include "drivers/DigitalOut.h" #include "platform/PlatformMutex.h" +#include "platform/NonCopyable.h" namespace mbed { /** \addtogroup drivers */ @@ -25,7 +26,7 @@ /** A digital output bus, used for setting the state of a collection of pins * @ingroup drivers */ -class BusOut { +class BusOut : private NonCopyable<BusOut> { public: @@ -119,11 +120,6 @@ int _nc_mask; PlatformMutex _mutex; - - /* disallow copy constructor and assignment operators */ -private: - BusOut(const BusOut&); - BusOut & operator = (const BusOut&); }; } // namespace mbed