diff --git a/TinySTL/List.h b/TinySTL/List.h index febb068d6ca7189a42aeb259f68cfffac725721a..99aef1b2972a34558f33cddeeadf9a7ce3267f0a 100644 --- a/TinySTL/List.h +++ b/TinySTL/List.h @@ -20,7 +20,7 @@ namespace TinySTL{ node *next; list *container; node(const T& d, node *p, node *n, list *c): - data(d), prev(p), node(n), container(c){} + data(d), prev(p), next(n), container(c){} bool operator ==(const node& n){ return data == n.data && prev == n.prev && next == n.next && container == n.container; }