summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-08-22 19:23:01 +0400
committerunknown <konstantin@mysql.com>2005-08-22 19:23:01 +0400
commit0b4ec2fb427b242b2522f16b870933e10ce1a716 (patch)
treeac28c059f18c9b316b10d241369e346a4f4ce654
parentd6c3f0f4b6529a1389b11c3c62dc3506f1ea514d (diff)
downloadmariadb-git-0b4ec2fb427b242b2522f16b870933e10ce1a716.tar.gz
Add a comment about I_List<> copy constructor.
sql/sql_list.h: Add a comment.
-rw-r--r--sql/sql_list.h7
1 files changed, 6 insertions, 1 deletions
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 T> 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(); }