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:
parent
319046fed7
commit
8686b6dada
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user