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

clang-10 warning: comparison of integers of different signs: 'typename iterator_traits<__wrap_iter<char *> >::difference_type' (aka 'long') and 'const std::size_t' (aka 'const unsigned long') #344

Open
k15tfu opened this issue Oct 5, 2023 · 0 comments

Comments

@k15tfu
Copy link
Contributor

k15tfu commented Oct 5, 2023

Hi!

In file boost/process/environment.hpp:

boost/process/environment.hpp:267:56: error: comparison of integers of different signs: 'typename iterator_traits<__wrap_iter<char *> >::difference_type' (aka 'long') and 'const std::size_t' (aka 'const unsigned long') [-Werror,-Wsign-compare]
            if ((std::distance(st1.begin(), st1.end()) < len)
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~
[...]
1 error generated.

Linked issue: #267

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

1 participant