poco
poco copied to clipboard
operator<<() for SocketAddress doesn't work with ADL
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.