mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 20:19:59 +00:00
This commit is contained in:
@@ -224,7 +224,11 @@ typename V::list::ptr get_related(T* t, F f, G g) {
|
|||||||
typename V::list::ptr acc(new typename V::list);
|
typename V::list::ptr acc(new typename V::list);
|
||||||
for (typename U::list::it it = li->begin(); it != li->end(); ++it) {
|
for (typename U::list::it it = li->begin(); it != li->end(); ++it) {
|
||||||
U* u = *it;
|
U* u = *it;
|
||||||
|
try {
|
||||||
acc->push((*u.*g)()->template as<V>());
|
acc->push((*u.*g)()->template as<V>());
|
||||||
|
} catch (IfcParse::IfcException& e) {
|
||||||
|
Logger::Error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user