Skip to content
Snippets Groups Projects
Commit 7c60c9cb authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Make Match copying deep instead of shallow.

parent 4ff96690
Branches
No related tags found
No related merge requests found
...@@ -49,6 +49,16 @@ public: ...@@ -49,6 +49,16 @@ public:
{ {
} }
Match(const Match& match)
: match_(match.match_->clone())
{
}
Match& operator=(const Match& match) {
match_ = match.match_->clone();
return *this;
}
const MatchData& get_value() const { const MatchData& get_value() const {
return *match_; return *match_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment