boostorg / boostorg/process

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')

Open
#344 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

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 >::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: https://github.com/boostorg/process/issues/267

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.