mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
Fixes for WASM build (some temporary)
This commit is contained in:
@@ -311,11 +311,11 @@ std::string character_decoder<Reader>::get(size_t& ptr) {
|
||||
return s;
|
||||
}
|
||||
|
||||
template class IFC_PARSE_API character_decoder<file_reader<full_buffer_impl>>;
|
||||
template class IFC_PARSE_API character_decoder<file_reader<paged_file_impl>>;
|
||||
template class IFC_PARSE_API character_decoder<file_reader<pushed_sequential_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::character_decoder<file_reader<full_buffer_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::character_decoder<file_reader<paged_file_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::character_decoder<file_reader<pushed_sequential_impl>>;
|
||||
#ifdef USE_MMAP
|
||||
template class IFC_PARSE_API character_decoder<file_reader<mmap_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::character_decoder<file_reader<mmap_impl>>;
|
||||
#endif
|
||||
|
||||
character_encoder::character_encoder(const std::string& input)
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -411,11 +411,11 @@ token spf_lexer<Reader>::next() {
|
||||
}
|
||||
}
|
||||
|
||||
template class IFC_PARSE_API spf_lexer<file_reader<full_buffer_impl>>;
|
||||
template class IFC_PARSE_API spf_lexer<file_reader<paged_file_impl>>;
|
||||
template class IFC_PARSE_API spf_lexer<file_reader<pushed_sequential_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::spf_lexer<file_reader<full_buffer_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::spf_lexer<file_reader<paged_file_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::spf_lexer<file_reader<pushed_sequential_impl>>;
|
||||
#ifdef USE_MMAP
|
||||
template class IFC_PARSE_API spf_lexer<file_reader<mmap_impl>>;
|
||||
template class IFC_PARSE_API ifcopenshell::spf_lexer<file_reader<mmap_impl>>;
|
||||
#endif
|
||||
|
||||
bool token::is_operator() {
|
||||
|
||||
Reference in New Issue
Block a user