From 8686b6dada11881e6f75cff48dd74dad18835d42 Mon Sep 17 00:00:00 2001
From: David Shah <dave@ds0.me>
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 <dave@ds0.me>
---
 ice40/arch.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'ice40')

diff --git a/ice40/arch.h b/ice40/arch.h
index 02519252..1274a52a 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -41,6 +41,9 @@ template <typename T> 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