Skip to content

Commit

Permalink
Do not delete special member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Dec 18, 2024
1 parent 9e90254 commit 817a6c0
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 817a6c0

Please sign in to comment.