From: Prochnow, C. <pro...@se...> - 2005-05-31 11:13:46
|
Am Sonntag 29 Mai 2005 20:12 schrieb stephan beal: > On Sunday 29 May 2005 19:54, Prochnow, Christian wrote: > > see Factory.h Revision 1.21: > > -- > > template <typename TypeName> > > void registerType( const key_type & key, TypeName ) > > { > > registerFactory( key, > > Hook::FactoryCreateHook<InterfaceT,TypeName>::create ); > > } > > Nope. Check the CVS log, version 1.18: > cproch: > Added Factory::registerType(). Client code looks nicer when using it ;-) > > :) Ups .. sorry, i forgot that ... ;-) Anyway, we now have a registerType() method which doesnt require instantiating the registered type. Regards, Christian |