Overloaded perator << doesn't work in user namespaces.
Code below only works in golbally scoped functions, not in functions inside a namescope.
std::cout << curlpp::options::Url("http://example.com");
If I move declaration
std::ostream & operator<<(std::ostream & stream, const curlpp::options::Url & url);
into namespace curlpp, the problem gets resolved.
Can you create a merge request?
On Mon, Mar 15, 2021, 07:03 JonnyChen @.***> wrote:
Code below only works in golbally scoped functions, not in functions inside a namescope. std::cout << curlpp::options::Url("http://example.com");
If I move declaration std::ostream & operator<<(std::ostream & stream, const curlpp::options::Url & url); into namespace curlpp, the problem gets resolved.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jpbarrette/curlpp/issues/118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARU4DIGP4WZK7F56SA3LLTDWPM5ANCNFSM4ZF4KNBA .