Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pikapi12321 opened this issue Mar 15, 2021 · 1 comment
Open

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

pikapi12321 opened this issue Mar 15, 2021 · 1 comment

Comments

@pikapi12321
Copy link

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
Copy link
Owner

jpbarrette commented Mar 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants