Hello everyone,
I am trying to pre-allocate a certain number of nodes to a linked list, I allocate 10 nodes at first and, if I have more data to store, I'll need to resize it by adding half of the total number of nodes, sort of like 10, second time 5, and the third time is 15/2=7 nodes. It is giving me 2 errors C2664 on lines 154 and 163, where I'm trying to add nodes it is saying that I can't convert from const int to const staticList<T>::Node<T>. And also I'm trying to insert about a million of same same data elements.
Please Help :)
Thank you!