jpbarrette/curlpp

Overloaded perator << doesn't work in user namespaces.

pikapi12321 opened this issue · 1 comments

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.