projects
/
contrib
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de0c08
)
We wish to prevent multiple instances of OCPlatform from being accidentally created...
author
Erich Keane
<erich.keane@intel.com>
Mon, 20 Oct 2014 22:27:52 +0000
(15:27 -0700)
committer
Erich 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
patch
|
blob
|
history
diff --git
a/include/OCPlatform.h
b/include/OCPlatform.h
index
1844049
..
93100ae
100644
(file)
--- a/
include/OCPlatform.h
+++ b/
include/OCPlatform.h
@@
-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;
};
}