From 23df30f23f362d22393f0d150ce6babf240d9838 Mon Sep 17 00:00:00 2001 From: Walt Karas Date: Thu, 31 Aug 2023 18:01:05 +0000 Subject: [PATCH] Disable copying/moving for DbgCtl. --- include/ts/DbgCtl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ts/DbgCtl.h b/include/ts/DbgCtl.h index d9cd3d64f99..1bd08988e9f 100644 --- a/include/ts/DbgCtl.h +++ b/include/ts/DbgCtl.h @@ -90,6 +90,10 @@ class DbgCtl 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;