Skip to content

Commit

Permalink
Do not delete special member functions (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen authored Dec 18, 2024
1 parent b5d897f commit 51f87af
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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 <class Archive>
Expand Down

0 comments on commit 51f87af

Please sign in to comment.