From 0b4ec2fb427b242b2522f16b870933e10ce1a716 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 22 Aug 2005 19:23:01 +0400 Subject: [PATCH] Add a comment about I_List<> copy constructor. sql/sql_list.h: Add a comment. --- sql/sql_list.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sql/sql_list.h b/sql/sql_list.h index 09c01931c38..e4a34cc0aa1 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -426,9 +426,14 @@ struct ilink template class I_List_iterator; +/* + WARNING: copy constructor of this class does not create a usable + copy, as its members may point at each other. +*/ + class base_ilist { - public: +public: struct ilink *first,last; inline void empty() { first= &last; last.prev= &first; } base_ilist() { empty(); }