mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Add missing standard library includes for self-sufficient headers
Fixes builds with newer GCC/libstdc++ that no longer provide <cstdint>, <cstring>, <cfloat>, <memory>, <algorithm> etc. transitively. Also disambiguates visit<> calls in taxonomy.h with the full namespace and casts the character value in IfcCharacterDecoder to uint32_t to silence ambiguous overload warnings.
This commit is contained in:
committed by
Thomas Krijnen
parent
674ed36e41
commit
bd264f1d85
@@ -201,7 +201,7 @@ namespace {
|
||||
if (character >= 0x20 && character <= 0x7e) {
|
||||
stream.put((char)character);
|
||||
} else {
|
||||
stream << "\\u" << character;
|
||||
stream << "\\u" << static_cast<uint32_t>(character);
|
||||
}
|
||||
});
|
||||
return stream.str();
|
||||
|
||||
Reference in New Issue
Block a user