From b87ab0ee9de093b5302de7997e94e10dae6655b4 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Wed, 27 Jan 2021 20:47:02 +0000 Subject: Make RelSlice uncopyable Signed-off-by: D. Shah --- common/relptr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/relptr.h') diff --git a/common/relptr.h b/common/relptr.h index f8f1d429..035d61fb 100644 --- a/common/relptr.h +++ b/common/relptr.h @@ -36,4 +36,7 @@ NPNR_PACKED_STRUCT(template struct RelSlice { const T &operator*() const { return *(get()); } const T *operator->() const { return get(); } + + RelSlice(const RelSlice &) = delete; + RelSlice &operator=(const RelSlice &) = delete; }); -- cgit v1.2.3