Skip to content

fix(interfaces): add full namespace qualification for cross-namespace usage#273

Merged
kcenon merged 1 commit into
mainfrom
fix/namespace-qualification-in-interfaces
Jan 9, 2026
Merged

fix(interfaces): add full namespace qualification for cross-namespace usage#273
kcenon merged 1 commit into
mainfrom
fix/namespace-qualification-in-interfaces

Conversation

@kcenon

@kcenon kcenon commented Jan 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add fully qualified namespace prefixes (::kcenon::common::) to types used in transport interface headers

Changes

  • http_client_interface.h: Qualify Result, make_error, error_codes in null_http_client
  • udp_client_interface.h: Qualify VoidResult, error_info, error_codes in IUdpClient and null_udp_client

Problem

When these headers are included from within different namespace contexts (e.g., kcenon::monitoring), the unqualified type names are resolved relative to the current namespace, causing compilation errors like:

no member named 'interfaces' in namespace 'kcenon::common'

Solution

Use absolute namespace paths with leading :: to ensure correct resolution regardless of inclusion context.

Testing

  • Verified compilation with monitoring_system tests that include these headers

Related

… usage

Add fully qualified namespace prefixes (::kcenon::common::) to types used
in transport interface headers to prevent namespace resolution issues when
headers are included from different namespace contexts.

Changes:
- http_client_interface.h: Qualify Result, make_error, error_codes
- udp_client_interface.h: Qualify VoidResult, error_info, error_codes

This fixes compilation errors when these headers are included from within
kcenon::monitoring or other namespaces that may have their own 'common'
namespace alias.
@kcenon kcenon merged commit d16ac8c into main Jan 9, 2026
22 checks passed
@kcenon kcenon deleted the fix/namespace-qualification-in-interfaces branch January 9, 2026 13:29
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