merging all stl containers of pointer objects

Aliesha Finkel
Fri Jan 11 11:25:00 GMT 2008

Hi GCC Folks,

I'd like to reduce the number of STL instances in a
large project by merging all vector<T*> to be
vector<void*> under the hood with just some type
checking.  I know I can do this through a series of
derived classes, but it seems like there should be an
easier way to do this (optimally GCC could be smart
enough to do this for me).  Any ideas?

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.

More information about the Gcc-help mailing list