Hi, Okey, now it works.
To register the new class I do: dynModuleExecution::RegisterImpl( "UnicoreModule", baseFactory ) Because with : dynModuleExecution::RegisterImpl( "UnicoreModule", p ) returns:'dynModuleExecution::RegisterImpl' : no se puede convertir el parámetro 2 de 'uc::dynModuleUnicoreExecution::Factory::Pointer' a 'dynModuleExecutionImpl::Factory::Pointer' Is it correct? Regards El lun, 09-05-2011 a las 16:46 +0200, Xavier Planes escribió: > Hi Toni, > > To fix the problem you need to use a Smart pointer variable of the > superclass and cast it to your concrete factory: > > dynModuleExecutionImpl::Factory::Pointer baseFactory; > baseFactory = uc::dynModuleUnicoreExecution::Factory::New( ); > > uc::dynModuleUnicoreExecution::Factory::Pointer p; > p = dynamic_cast<uc::dynModuleUnicoreExecution::Factory*> ( > baseFactory.GetPointer() ); > > Best, > Xavi > > -----Original Message----- > From: antoni artigues [mailto:[email protected]] > Sent: lunes, 09 de mayo de 2011 15:35 > To: Xavier Planes > Cc: [email protected] > Subject: RE: [Gimias-developers] Instantiation error dynModuleExecutionImpl > > Hello Xavi, > > Thanks for the answer. The two includes don't solve the problem. > > I send you the header file > > Thanks > > Regards > > Antoni Artigues > > El lun, 09-05-2011 a las 14:25 +0200, Xavier Planes escribió: > > blSmartPointer.h > ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Gimias-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gimias-developers
