mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Prefer pre-const to post-const
This commit is contained in:
parent
0195a5065c
commit
12fcae66a7
@ -140,7 +140,7 @@ TEST_CASE("Users can use actions on remaining arguments" *
|
||||
|
||||
std::string result = "";
|
||||
program.add_argument("all").remaining().action(
|
||||
[](std::string &sum, std::string const &value) { sum += value; },
|
||||
[](std::string &sum, const std::string &value) { sum += value; },
|
||||
std::ref(result));
|
||||
|
||||
program.parse_args({"concat", "a", "-b", "-c", "--d"});
|
||||
|
Loading…
Reference in New Issue
Block a user