mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
Fixes for WASM build (some temporary)
This commit is contained in:
@@ -412,16 +412,6 @@ public:
|
||||
|
||||
void build_inverses_(const express::Base& entity);
|
||||
|
||||
// @nb this does not support id assignment
|
||||
template <typename T, typename... Ts>
|
||||
T create(Ts&&... args) {
|
||||
T t = create(&T::Class()).template as<T>();
|
||||
if constexpr (sizeof...(Ts) > 0) {
|
||||
t.initialize(std::forward<Ts>(args)...);
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T create(int instance_id = -1) {
|
||||
return create(&T::Class(), instance_id).template as<T>();
|
||||
|
||||
Reference in New Issue
Block a user