We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My project has -Wsign-conversion turned on and it triggers some warnings in argparse:
-Wsign-conversion
argparse
/libs/argparse/include/argparse/argparse.hpp:626:26: warning: implicit conversion changes signedness: 'long' to 'std::__1::basic_string_view::size_type' (aka 'unsigned long') [-Wsign-conversion] return s.substr(it - begin(s)); ~~~~~~ ~~~^~~~~~~~~~ /libs/argparse/include/argparse/argparse.hpp:953:22: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to 'std::__1::streamsize' (aka 'long') [-Wsign-conversion] stream.width(tLongestArgumentLength); ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~ /libs/argparse/include/argparse/argparse.hpp:962:22: warning: implicit conversion changes signedness: 'size_t' (aka 'unsigned long') to 'std::__1::streamsize' (aka 'long') [-Wsign-conversion] stream.width(tLongestArgumentLength); ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~ /libs/argparse/include/argparse/argparse.hpp:442:32: warning: implicit conversion changes signedness: 'std::__1::optional<unsigned long>::value_type' (aka 'unsigned long') to 'typename iterator_traits<__wrap_iter<const basic_string<char> *> >::difference_type' (aka 'long') [-Wsign-conversion] end = std::next(start, *expected); ~~~ ^~~~~~~~~
clang version 11.0.0
The text was updated successfully, but these errors were encountered:
14287af
Merge pull request #202 from p-ranav/bugfix/94_implicit_conversions
d512563
Closes #94
No branches or pull requests
My project has
-Wsign-conversion
turned on and it triggers some warnings inargparse
:The text was updated successfully, but these errors were encountered: