diff --git a/src/Obj.h b/src/Obj.h index 9920e5c588..c175459a5d 100644 --- a/src/Obj.h +++ b/src/Obj.h @@ -73,6 +73,10 @@ public: virtual ~BroObj(); + /* disallow copying */ + BroObj(const BroObj &) = delete; + BroObj &operator=(const BroObj &) = delete; + // Report user warnings/errors. If obj2 is given, then it's // included in the message, though if pinpoint_only is non-zero, // then obj2 is only used to pinpoint the location.