[QuantLibAddin-cvs] QuantLibAddin/qlo typefactory.hpp,1.21,1.22
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-07-27 16:18:00
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18550/qlo Modified Files: typefactory.hpp Log Message: undo linux changes which break on Windows Index: typefactory.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/typefactory.hpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** typefactory.hpp 27 Jul 2006 14:06:32 -0000 1.21 --- typefactory.hpp 27 Jul 2006 14:50:17 -0000 1.22 *************** *** 90,95 **** for (i = type_map->begin(); i != type_map->end(); i++) if (uppercase(i->first) == idUpper) ! //return static_cast<ConstructorSignature>(i->second); ! return reinterpret_cast<ConstructorSignature>(i->second); QL_FAIL("Unknown id for Type: " << id); } --- 90,95 ---- for (i = type_map->begin(); i != type_map->end(); i++) if (uppercase(i->first) == idUpper) ! return static_cast<ConstructorSignature>(i->second); ! //return reinterpret_cast<ConstructorSignature>(i->second); QL_FAIL("Unknown id for Type: " << id); } *************** *** 100,105 **** public: T operator()(const std::string& id) { ! //return *(getType<std::string, T*>(id)); ! return *(this->getType(id)); } using RegistryManager<T, EnumTypeRegistry>::checkType; --- 100,105 ---- public: T operator()(const std::string& id) { ! return *(getType<std::string, T*>(id)); ! //return *(this->getType(id)); } using RegistryManager<T, EnumTypeRegistry>::checkType; |