¡@

Home 

c++ Programming Glossary: factorybase

(static initialization/template instantiation) problems with factory pattern

http://stackoverflow.com/questions/2851991/static-initialization-template-instantiation-problems-with-factory-pattern

const char classtype##_name_ #classtype class classtype FactoryBase classtype classtype##_name_ namespace detail_ class registerHelperBase.. template class TClass const char ClassName class FactoryBase private static detail_ registerHelper_ FactoryBase TClass ClassName.. class FactoryBase private static detail_ registerHelper_ FactoryBase TClass ClassName ClassName factory_helper_ static void factory_init_..

trying to force static object initialization

http://stackoverflow.com/questions/9549714/trying-to-force-static-object-initialization

_helper struct ClassName##Factory public FactoryBase ClassName ... The previous code is defined in a header file.. iostream namespace my_lib template typename struct FactoryBase template typename T struct FactoryHelper FactoryHelper int.. _helper 0 struct ClassName##Factory public FactoryBase ClassName struct UnitTestExample CREATE_FACTORY UnitTestExample..