TagItem: disable the copy constructor/operator
This is not a C++ class and must not be copied.
This commit is contained in:
parent
5d5f21bfc5
commit
ce08a7a932
@ -36,6 +36,10 @@ struct TagItem {
|
|||||||
* the value of this tag; this is a variable length string
|
* the value of this tag; this is a variable length string
|
||||||
*/
|
*/
|
||||||
char value[sizeof(long)];
|
char value[sizeof(long)];
|
||||||
|
|
||||||
|
TagItem() = default;
|
||||||
|
TagItem(const TagItem &other) = delete;
|
||||||
|
TagItem &operator=(const TagItem &other) = delete;
|
||||||
} gcc_packed;
|
} gcc_packed;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user