I want to use the below garbage collector, but when I would compile I get a lot of error with GCC but not with VSC++, i.e this.
list<GCInfo<T> >::iterator p; —> Expected ‘;’ after expression
And here is the library.
http://www.devarticles.com/c/a/Cplusplus/A-Simple-Garbage-Collector-for-C-plus-plus/3/
Assuming
Tis a template parameter, you need atypename:For more about when and why
typenameis required, see the Stack Overflow C++ FAQ “Where and why do I have to puttemplateandtypenameon dependent names?”