Skip to content

Conversation

musicinmybrain
Copy link
Contributor

At least in the API headers, include <cstdint> everywhere that fixed-width integer types int32_t, uint32_t, or uint64_t are used. Including headers everywhere they are used avoids relying on indirectly including them via the C++ standard library, which tends to break with new compiler versions. This change doesn’t implement that idea project-wide even for <cstdint>, let alone in general, but it is enough to fix failure to build with GCC 15.

Originally filed as BlueBrain/MorphIO#517.

At least in the API headers, include <cstdint> everywhere that
fixed-width integer types `int32_t`, `uint32_t`, or `uint64_t` are used.
Including headers everywhere they are used avoids relying on indirectly
including them via the C++ standard library, which tends to break with
new compiler versions. This change doesn’t implement that idea
project-wide even for `<cstdint>`, let alone in general, but it is
enough to fix failure to build with GCC 15.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant