Reduce unnecessary use of smart pointers

Speed up type checking by using std::maps and switch statements
Add compile flag to win/IfcGeom.vcproj
This commit is contained in:
Thomas Krijnen
2011-09-03 13:58:59 +00:00
parent b17832e659
commit d02eeac132
21 changed files with 5539 additions and 5491 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#define SHAPE(T) \
if ( l->is(T::Class()) ) { \
try { \
bool b = convert(reinterpret_pointer_cast<IfcBaseClass,T>(l),r); \
bool b = convert((T*)l,r); \
if ( b ) { \
Cache::Shape[l->entity->id()] = r; \
return true; \