Skip to content

Commit

Permalink
Pass type along to parse_number().
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 17, 2024
1 parent d141b8d commit e54e459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ class Argument {
var = std::any_cast<T>(m_default_value);
}
action([&var](const auto &s) {
var = details::parse_number<int, details::radix_10>()(s);
var = details::parse_number<T, details::radix_10>()(s);
});
return *this;
}
Expand Down

0 comments on commit e54e459

Please sign in to comment.