-
Notifications
You must be signed in to change notification settings - Fork 82
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
[FIX] wrong type name in argument_parser error #2836
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/seqan/seqan3/2cXY4wca1651KypPb6QMgExzPuFv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
@@ -451,7 +451,7 @@ class format_parse : public format_base | |||
if (res == option_parse_result::error) | |||
{ | |||
throw user_input_error{msg + "Argument " + input_value + " could not be parsed as type " + | |||
get_type_name_as_string(input_value) + "."}; | |||
get_type_name_as_string(option_type{}) + "."}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it is fine to assume default-constructible here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the same, but then I saw
typename container_option_t::value_type tmp{}; |
(We assume default-constructible for the values inside arguments that are passed as list)
So I guess it's fine
Codecov Report
@@ Coverage Diff @@
## release-3.1.0 #2836 +/- ##
==============================================
Coverage 98.21% 98.21%
==============================================
Files 272 272
Lines 10829 10829
==============================================
Hits 10636 10636
Misses 193 193
Continue to review full report at Codecov.
|
Resolves #2835