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>
This commit is contained in:
David Shah 2020-11-13 20:19:53 +00:00
parent 319046fed7
commit 8686b6dada
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {