This is an automated email from the ASF dual-hosted git repository.
wkaras pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 04c04e3c6e Disable copying/moving for DbgCtl. (#10321)
04c04e3c6e is described below
commit 04c04e3c6e768b95d92370628a3d11ca9a0239ad
Author: Walt Karas <[email protected]>
AuthorDate: Tue Sep 5 09:41:58 2023 -0400
Disable copying/moving for DbgCtl. (#10321)
---
include/ts/DbgCtl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/ts/DbgCtl.h b/include/ts/DbgCtl.h
index d9cd3d64f9..1bd08988e9 100644
--- a/include/ts/DbgCtl.h
+++ b/include/ts/DbgCtl.h
@@ -90,6 +90,10 @@ public:
static void print(char const *tag, char const *file, char const *function,
int line, char const *fmt_str, ...)
TS_PRINTFLIKE(5, 6);
+ // No copying/moving.
+ DbgCtl(DbgCtl const &) = delete;
+ DbgCtl &operator=(DbgCtl const &) = delete;
+
private:
using _TagData = std::pair<char const *const, bool>;