How do I make this work? It works for integers correctly but I don't know what to do when passing a string. I don't want the complete implementation of the list so don't give me that thanks. I just want to get this current code working and then I will go off from there.
really? On my end it just seems to crash for an unknown reason. I'm using codeblocks as my IDE if it matters.
||=== Build: Debug in Review (compiler: GNU GCC Compiler) ===|
In instantiation of 'T List<T>::insert(T) [with T = std::basic_string<char>]':|
|55|required from here|
|44|warning: no return statement in function returning non-void [-Wreturn-type]|
||=== Build finished: 0 error(s), 3 warning(s) (0 minute(s), 0 second(s)) ===|
||=== Run: Debug in Review (compiler: GNU GCC Compiler) ===|
I got those warnings after exiting the console window.