From 12fcae66a761eb6570f376c81b9fd2bf8e0807f5 Mon Sep 17 00:00:00 2001 From: Yoshihiro Hokazono Date: Tue, 21 Jun 2022 06:48:13 +0900 Subject: [PATCH] Prefer pre-const to post-const --- test/test_actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_actions.cpp b/test/test_actions.cpp index dbc9d5b..c434cad 100644 --- a/test/test_actions.cpp +++ b/test/test_actions.cpp @@ -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"});