mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Virtual inheritance prototype for select
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "IfcRegisterUndef.h"
|
||||
#define SHAPES(T) \
|
||||
if ( l->declaration().is(IfcSchema::T::Class()) ) { \
|
||||
if (l->as<IfcSchema::T>()) { \
|
||||
try { \
|
||||
return convert((IfcSchema::T*)l,r); \
|
||||
return convert(l->as<IfcSchema::T>(), r); \
|
||||
} catch (const std::exception& e) { \
|
||||
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l); \
|
||||
} catch (const Standard_Failure& f) { \
|
||||
|
||||
Reference in New Issue
Block a user