I'm trying to make a move constructor but I get the error
expected ',' or '...' before '&&' token
This is the line that's causing the trouble:
List(List&& list) noexcept;
I also have a copy-constructor that looks similiar. Dont know if that might cause trouble:
List(const List& copy);
(this is all in the header file for my List class)
Make sure you use a compiler that can compile C++11 code (and is set to do so), this is not valid in previous versions of the C++ standard
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With