is cleaner class factory interface. (But depends on your taste).
Mirek
mhhh... I don't understand your point. I need the class creation at runtime by name, so an ascii string, not a type.
No, it is not about the class name, but you avoid "naked" pointer (naked in sense that it points to the heap and is the only reference to the heap object).