Skip to content

operator<<() for SocketAddress doesn't work with ADL #3997

@vehlwn

Description

@vehlwn

Poco 1.12.4.

Operator<<() declared here is not findable using ADL because it's declared in global namespace and not in a namespace of SocketAddress. Due to that it's not possible to output SocketAddress into BOOST_LOG_TRIVIAL because it expects to find it using ADL. See the beginning of issue here.

Is this operator<<() even part of public API? I couldn't find any references to it neither on the doc page for SocketAddress nor Poco::Net namespace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions