diff --git a/tesseract_command_language/include/tesseract_command_language/profile.h b/tesseract_command_language/include/tesseract_command_language/profile.h index 2a97d726d2..205a76b814 100644 --- a/tesseract_command_language/include/tesseract_command_language/profile.h +++ b/tesseract_command_language/include/tesseract_command_language/profile.h @@ -43,10 +43,6 @@ class Profile Profile() = default; Profile(std::size_t key); - Profile(const Profile&) = delete; - Profile& operator=(const Profile&) = delete; - Profile(Profile&&) = delete; - Profile&& operator=(Profile&&) = delete; virtual ~Profile() = default; /** @@ -56,6 +52,11 @@ class Profile std::size_t getKey() const; protected: + Profile(const Profile&) = default; + Profile& operator=(const Profile&) = default; + Profile(Profile&&) = default; + Profile& operator=(Profile&&) = default; + std::size_t key_{ 0 }; friend class boost::serialization::access; template