¡@

Home 

c++ Programming Glossary: factory_helper_

(static initialization/template instantiation) problems with factory pattern

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

of initialization of the static registerHelper_ object factory_helper_ and the std map object initMap are wrong however i cant see.. the map object is constructed on first usage and thats in factory_helper_ constructor so everything should be alright shouldnt it I am.. anyway. EDIT debugging showed that without the call to factory_helper_.doNothing the constructor of factory_helper_ is never called...