diff options
Diffstat (limited to 'ACE/ace/Copy_Disabled.h')
-rw-r--r-- | ACE/ace/Copy_Disabled.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ACE/ace/Copy_Disabled.h b/ACE/ace/Copy_Disabled.h index 0617bd874c7..264dec106cb 100644 --- a/ACE/ace/Copy_Disabled.h +++ b/ACE/ace/Copy_Disabled.h @@ -32,7 +32,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL * This is often done by making the copy constructor and assignment * operators private, effectively disallowing copying by clients of * the class (including derived classes). If the copy constructor and - * assingment operators are left unimplemented then the class itself + * assignment operators are left unimplemented then the class itself * cannot make any copies of its instances, because it would result in * link errors. * @@ -47,11 +47,13 @@ class ACE_Export ACE_Copy_Disabled { public: /// Default constructor - ACE_Copy_Disabled (void); + ACE_Copy_Disabled (); private: - ACE_Copy_Disabled (const ACE_Copy_Disabled &); - ACE_Copy_Disabled &operator= (const ACE_Copy_Disabled &); + ACE_Copy_Disabled (const ACE_Copy_Disabled &) = delete; + ACE_Copy_Disabled (ACE_Copy_Disabled &&) = delete; + ACE_Copy_Disabled &operator= (const ACE_Copy_Disabled &) = delete; + ACE_Copy_Disabled &operator= (ACE_Copy_Disabled &&) = delete; }; ACE_END_VERSIONED_NAMESPACE_DECL |