]> git.llucax.com Git - software/eventxx.git/blobdiff - eventxx
Hide dispatcher copy-constructor and operator=.
[software/eventxx.git] / eventxx
diff --git a/eventxx b/eventxx
index 1740a284919d120864319ce0600cbc3217115290..2aeb0d0c6562349229dbed6cc437812ff1b40ff0 100644 (file)
--- a/eventxx
+++ b/eventxx
@@ -791,6 +791,11 @@ struct dispatcher
                        handler(fd, *reinterpret_cast< type* >(&ev));
                }
 
                        handler(fd, *reinterpret_cast< type* >(&ev));
                }
 
+       private:
+               // Hide nonsense copy-constructor and operator=
+               dispatcher(const dispatcher&);
+               dispatcher& operator=(const dispatcher&);
+
 }; // struct dispatcher
 
 } // namespace eventxx
 }; // struct dispatcher
 
 } // namespace eventxx