From 3a8f3ec2a07a518c2ea8422eceefba2544397500 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Wed, 22 Jul 2015 23:55:51 +0200 Subject: Specify undefined behavior if list is broken --- include/tag_list.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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 { public: -- cgit 0.0.5-2-1-g0f52