From 8686b6dada11881e6f75cff48dd74dad18835d42 Mon Sep 17 00:00:00 2001 From: David Shah Date: Fri, 13 Nov 2020 20:19:53 +0000 Subject: RelPtr: remove copy constructor and copy assignment These operations are meaningless for a data structure that references another structure relative to its location. Signed-off-by: David Shah --- ecp5/arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ecp5') diff --git a/ecp5/arch.h b/ecp5/arch.h index ecf653fc..32dc31d6 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -45,6 +45,9 @@ template struct RelPtr const T &operator*() const { return *(get()); } const T *operator->() const { return get(); } + + RelPtr(const RelPtr &) = delete; + RelPtr &operator=(const RelPtr &) = delete; }; NPNR_PACKED_STRUCT(struct BelWirePOD { -- cgit v1.2.3