diff --git a/Glob.hxx.in b/Glob.hxx.in
index 39b7ce7e700052514c554453d8db4a704b13fa29..5239ccd22729e9b3f71ba760468d3b1ee8393536 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;