Strange compilation error for a move constructor

c++, constructor, move

Solution

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

Problem

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)

Original source