diff options
-rw-r--r-- | ecp5/arch.h | 3 | ||||
-rw-r--r-- | ice40/arch.h | 3 |
2 files changed, 6 insertions, 0 deletions
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 <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 { 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 { |