From 09eb1743dd8e82ea2c2a2df44ba24afe7993ca8d Mon Sep 17 00:00:00 2001 From: Adam Wardynski <award@.(B-4.4.46a)> Date: Tue, 19 Apr 2011 11:34:21 +0200 Subject: [PATCH] Add virtual destructor to MatchData --- libwccl/values/matchdata.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libwccl/values/matchdata.h b/libwccl/values/matchdata.h index c8bd50d..1062c42 100644 --- a/libwccl/values/matchdata.h +++ b/libwccl/values/matchdata.h @@ -11,7 +11,7 @@ namespace Wccl { * - VectorMatch, TokenMatch or AnnotationMatch. * (empty VectorMatch should be default option) */ -class MatchData// : boost::noncopyable +class MatchData { public: @@ -38,6 +38,8 @@ public: virtual std::string to_raw_string() const = 0; + virtual ~MatchData() {} + protected: virtual MatchData* clone_internal() const = 0; }; -- GitLab