Overloaded perator << doesn't work in user namespaces.
pikapi12321 opened this issue · 1 comments
pikapi12321 commented
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.
jpbarrette commented
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
<#118>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARU4DIGP4WZK7F56SA3LLTDWPM5ANCNFSM4ZF4KNBA>
.