Thank you, the solution _pal_ suggested worked just fine.
The problem with std::for_each is that I don''t have any iterators to work with, only an internal linked list structure.
Also, if you wonder why I''m creating my own slist instead of using the stl one (and I know this sound like reinventing the wheel) I currently need to be able to memcopy the list to a file, or vice versa, during the save process. This means I cannot rely on the stl implementations because
1°/ Compilation will be done using three different compilers for three different platforms, but save files must be exchangeable between the platforms.
2°/ I need to run through all pointers and convert them to a save/loadable state, including the pointers used internally by the SList
And also...
3°/ I know at compile-time the maximum number of objects in the list, but I''m sure this one can be solved using STL.
Victor Nicollet, INT13 game programmer