From 7c60c9cb632c6587c6dec6492e137de2d5bd3dff Mon Sep 17 00:00:00 2001
From: Adam Wardynski <award@.(B-4.4.46a)>
Date: Tue, 19 Apr 2011 12:17:22 +0200
Subject: [PATCH] Make Match copying deep instead of shallow.

---
 libwccl/values/match.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/libwccl/values/match.h b/libwccl/values/match.h
index d2ac17f..66161fa 100644
--- a/libwccl/values/match.h
+++ b/libwccl/values/match.h
@@ -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 {
 		return *match_;
 	}
-- 
GitLab