Prefer pre-const to post-const

This commit is contained in:
Yoshihiro Hokazono 2022-06-21 06:48:13 +09:00
parent 0195a5065c
commit 12fcae66a7

View File

@ -140,7 +140,7 @@ TEST_CASE("Users can use actions on remaining arguments" *
std::string result = ""; std::string result = "";
program.add_argument("all").remaining().action( 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)); std::ref(result));
program.parse_args({"concat", "a", "-b", "-c", "--d"}); program.parse_args({"concat", "a", "-b", "-c", "--d"});