From ce08a7a93277d84506a73361583a8a663f60515f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 18:41:01 +0200 Subject: TagItem: disable the copy constructor/operator This is not a C++ class and must not be copied. --- src/tag/TagItem.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tag') diff --git a/src/tag/TagItem.hxx b/src/tag/TagItem.hxx index 58a8a9e9e..f661a273b 100644 --- a/src/tag/TagItem.hxx +++ b/src/tag/TagItem.hxx @@ -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 -- cgit v1.2.3