TagItem: disable the copy constructor/operator

This is not a C++ class and must not be copied.
This commit is contained in:
Max Kellermann 2013-09-05 18:41:01 +02:00
parent 5d5f21bfc5
commit ce08a7a932

View File

@ -36,6 +36,10 @@ struct TagItem {
* the value of this tag; this is a variable length string
*/
char value[sizeof(long)];
TagItem() = default;
TagItem(const TagItem &other) = delete;
TagItem &operator=(const TagItem &other) = delete;
} gcc_packed;
#endif