1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Add a comment about I_List<> copy constructor.

This commit is contained in:
konstantin@mysql.com
2005-08-22 19:23:01 +04:00
parent c75cfc358e
commit fb7be5270f

View File

@@ -426,9 +426,14 @@ struct ilink
template <class T> class I_List_iterator; 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 class base_ilist
{ {
public: public:
struct ilink *first,last; struct ilink *first,last;
inline void empty() { first= &last; last.prev= &first; } inline void empty() { first= &last; last.prev= &first; }
base_ilist() { empty(); } base_ilist() { empty(); }