poco icon indicating copy to clipboard operation
poco copied to clipboard

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

Open vehlwn opened this issue 2 years ago • 0 comments

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.

vehlwn avatar Apr 04 '23 04:04 vehlwn