mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Add a comment about I_List<> copy constructor.
sql/sql_list.h: Add a comment.
This commit is contained in:
parent
d6c3f0f4b6
commit
0b4ec2fb42
1 changed files with 6 additions and 1 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue