Modified for BG96

Fork of mbed-dev by mbed official

Files at this revision

API Documentation at this revision

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
diff -r 0387e8f68319 -r 60408c49b6d4 platform/NonCopyable.h
--- 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