Skip to content

fix: add missing <string> include to Types.hpp#59

Open
aki1770-del wants to merge 1 commit into
COVESA:masterfrom
aki1770-del:fix/missing-string-include-47
Open

fix: add missing <string> include to Types.hpp#59
aki1770-del wants to merge 1 commit into
COVESA:masterfrom
aki1770-del:fix/missing-string-include-47

Conversation

@aki1770-del
Copy link
Copy Markdown

Problem

GCC 14 tightened enforcement of transitive includes. std::string is used directly in Types.hpp (as ConnectionId_t typedef and as the return type of ClientId::getEnv() and ClientId::getHostAddress()) but was not explicitly included — it was only reachable through transitive pulls from other headers.

This causes build failures when consumers compile with -include precompiled headers or when GCC 14's stricter diagnostics are enabled.

Reported in #47.

Fix

Add #include <string> explicitly in Types.hpp.

Testing

  • Confirmed the file compiles cleanly in isolation after the fix
  • No other files changed

GCC 14 tightened transitive include enforcement. std::string
is used directly in Types.hpp (ConnectionId_t typedef and
ClientId::getEnv/getHostAddress return types) but was only
reachable through transitive includes from other headers.

Add explicit #include <string> to make the dependency
self-contained and fix compilation under GCC 14 strict mode.

Fixes COVESA#47
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