Log and validate invalid attribute counts - 0 for header entities

This commit is contained in:
Thomas Krijnen
2024-08-23 15:01:47 +02:00
parent 09d9c6bd4b
commit c032178753
+1 -1
View File
@@ -201,7 +201,7 @@ IfcEntityInstanceData IfcParse::parse_context::construct(int name, unresolved_re
expected_size && *expected_size != tokens_.size())
{
size_t expected = expected_size ? *expected_size : parameter_types.size();
Logger::Warning("Expected " + std::to_string(expected) + " attribute values, found " + std::to_string(tokens_.size()) + " for instance #" + std::to_string(name));
Logger::Warning("Expected " + std::to_string(expected) + " attribute values, found " + std::to_string(tokens_.size()) + " for instance #" + std::to_string(name > 0 ? name : 0));
}
if (tokens_.empty()) {