Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Revision 188:60408c49b6d4, committed 2018-09-20
- Comitter:
- WaleedElmughrabi
- Date:
- Thu Sep 20 16:11:23 2018 +0000
- Parent:
- 187:0387e8f68319
- Commit message:
- Fork modified for BG96 error
Changed in this revision
platform/NonCopyable.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/platform/NonCopyable.h Thu Sep 06 13:40:20 2018 +0100 +++ b/platform/NonCopyable.h Thu Sep 20 16:11:23 2018 +0000 @@ -158,7 +158,7 @@ */ ~NonCopyable() { } -#if (!defined(MBED_DEBUG) && (MBED_CONF_PLATFORM_FORCE_NON_COPYABLE_ERROR == 0)) +//#if (!defined(MBED_DEBUG) && (MBED_CONF_PLATFORM_FORCE_NON_COPYABLE_ERROR == 0)) /** * NonCopyable copy constructor. * @@ -168,7 +168,7 @@ * If you see this warning, your code is probably doing something unspecified. * Copy of non copyable resources can lead to resource leak and random error. */ - MBED_DEPRECATED("Invalid copy construction of a NonCopyable resource.") + // MBED_DEPRECATED("Invalid copy construction of a NonCopyable resource.") NonCopyable(const NonCopyable &) { debug("Invalid copy construction of a NonCopyable resource: %s\r\n", MBED_PRETTY_FUNCTION); @@ -183,7 +183,7 @@ * If you see this warning, your code is probably doing something unspecified. * Copy of non copyable resources can lead to resource leak and random error. */ - MBED_DEPRECATED("Invalid copy assignment of a NonCopyable resource.") + /* MBED_DEPRECATED("Invalid copy assignment of a NonCopyable resource.") NonCopyable &operator=(const NonCopyable &) { debug("Invalid copy assignment of a NonCopyable resource: %s\r\n", MBED_PRETTY_FUNCTION); @@ -192,18 +192,19 @@ #else private: - /** + /* * Declare copy constructor as private, any attempt to copy construct * a NonCopyable will fail at compile time. */ - NonCopyable(const NonCopyable &); + //NonCopyable(const NonCopyable &); /** * Declare copy assignment operator as private, any attempt to copy assign * a NonCopyable will fail at compile time. */ - NonCopyable &operator=(const NonCopyable &); -#endif + //NonCopyable &operator=(const NonCopyable &); +//#endif + }; } // namespace mbed