From 817a6c02f9270f07ddef5551417f074815d285bf Mon Sep 17 00:00:00 2001 From: Roelof Oomen Date: Wed, 18 Dec 2024 13:41:04 +0100 Subject: [PATCH] Do not delete special member functions --- .../include/tesseract_command_language/profile.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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