We wish to prevent multiple instances of OCPlatform from being accidentally created...
authorErich Keane <erich.keane@intel.com>
Mon, 20 Oct 2014 22:27:52 +0000 (15:27 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 20 Oct 2014 22:33:55 +0000 (15:33 -0700)
Patch 2: Fixed wording of comment in OCPlatform
Change-Id: Ic53816972426a29afc4764982a3ad712fa284945

include/OCPlatform.h

index 1844049..93100ae 100644 (file)
@@ -385,6 +385,14 @@ namespace OC
         *  Private function to initalize the platfrom
         */
         void init(const PlatformConfig& config);
+
+        /**
+         * Private constructor/operators to prevent copying
+         * of this object
+         */
+        OCPlatform(const OCPlatform& other)= delete;
+        OCPlatform& operator=(const OCPlatform&) = delete;
+        OCPlatform& operator=(const OCPlatform&&) = delete;
     };
 }