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.
Diff: drivers/BusOut.h
- Revision:
- 146:22da6e220af6
- Parent:
- 145:64910690c574
--- a/drivers/BusOut.h Wed Jun 21 17:31:38 2017 +0100 +++ b/drivers/BusOut.h Thu Jul 06 15:30:22 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