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 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment