From 4f39791b0baaa496399cfbfa53f3f217faa61eb4 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Fri, 17 Apr 2015 08:11:04 -0400
Subject: [PATCH] Glob: Add explicit assignment operator to Message member

 Glob.hxx:58:5: warning: definition of implicit copy assignment operator
  for 'Message' is deprecated because it has a user-declared copy
  constructor [-Wdeprecated]
     Message(const Message& msg) :
     ^

Change-Id: Id6d28d9e5b4ed556556a5add10881f1bcd4525b7
---
 Glob.hxx.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Glob.hxx.in b/Glob.hxx.in
index 39b7ce7e..5239ccd2 100644
--- a/Glob.hxx.in
+++ b/Glob.hxx.in
@@ -59,6 +59,12 @@ public:
       type(msg.type),
       content(msg.content)
     {}
+    Message& operator=(Message const& msg)
+      {
+      this->type = msg.type;
+      this->content = msg.content;
+      return *this;
+      }
   };
 
   typedef kwsys_stl::vector<Message> GlobMessages;
-- 
GitLab