EDIT: Simple mistake.
Forgot to use "namespace"!
You should reply to the thread with the solution, instead of removing the question. If you delete the question, the answer doesn't help anyone in the future!
It barely had any code since it was so simple but fair point.
I was trying to use "list" on its own without the "std" namespace.
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.