summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-22 23:55:51 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-22 23:55:51 +0200
commit3a8f3ec2a07a518c2ea8422eceefba2544397500 (patch)
tree5b99c3f25acc5fc22334e3ce8f45016058f0bda0 /include
parenta4c22fa02f779c28109e4617ba64ffbd760abcea (diff)
downloadProject-Tick-3a8f3ec2a07a518c2ea8422eceefba2544397500.tar.gz
Project-Tick-3a8f3ec2a07a518c2ea8422eceefba2544397500.zip
Specify undefined behavior if list is broken
Diffstat (limited to 'include')
-rw-r--r--include/tag_list.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/tag_list.h b/include/tag_list.h
index f44f4ba66e..87b2742e92 100644
--- a/include/tag_list.h
+++ b/include/tag_list.h
@@ -29,7 +29,12 @@
namespace nbt
{
-///Tag that contains multiple unnamed tags of the same type
+/**
+ * @brief Tag that contains multiple unnamed tags of the same type
+ *
+ * The list's behavior is undefined if the contained values are changed in a
+ * way that their type differs from the list's content type.
+ */
class tag_list final : public detail::crtp_tag<tag_list>
{
public: