Priest of the Order of the Butterfly
Posts: 559 from 2012/6/8
From: Hungary
You have two choices: either rename your list class to something else (e.g. MyList) or let the preprocessor do it for you, by adding this line to the beginnig of your list.h:
Code:
If you choose the latter, make sure to include your list.h after the system headers, or you'll end up redefining List in the system headers too.
This is just like television, only you can see much further.