I'm thinking in use a boost::object_pool, but the types of objects to store are all in the same hierarchy. My question is how do I need to store and use the pool to convert each object into the desired type.
My guest that store the ancestor as a type of the pool, then convert the returned object with a dinamyc cast to the proper type.
Is it an object pool the best alternative??
Need some orientation :) Thanks in advance
EDIT: All of you are right. I was thinking in the traditional casting newObj = (newType)oldObj. Sorry.