The OCResourceIdentifier proxy class depends on compiler rules
to determine validity of constructors and assignments. This patch
correctly explicitly specifies these values.
Note: This patch does NOT change any behavior or functionality, it
solely specifies behavior explicitly rather than implicitly.
Change-Id: I5110cb10e07112e7786c56fedee43f76cfdab3bd
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/572
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
friend std::ostream& operator <<(std::ostream& os, const OCResourceIdentifier& ri);
public:
+ OCResourceIdentifier() = delete;
+
+ OCResourceIdentifier(const OCResourceIdentifier&) = default;
+
+ OCResourceIdentifier(OCResourceIdentifier&&) = default;
+
+ OCResourceIdentifier& operator=(const OCResourceIdentifier&) = delete;
+
+ OCResourceIdentifier& operator=(OCResourceIdentifier&&) = delete;
+
bool operator==(const OCResourceIdentifier &other) const;
bool operator!=(const OCResourceIdentifier &other) const;