From b55cd27c082d8c6fcbaf98e7b2fbd17140e71801 Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Mon, 6 Nov 2017 22:34:17 +0300 Subject: add travis ci, appveyor, coveralls --- test.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test.cxx') diff --git a/test.cxx b/test.cxx index 0726619..135d1ee 100644 --- a/test.cxx +++ b/test.cxx @@ -294,7 +294,7 @@ TEST_CASE("Argument groups should nest", "[args]") struct DoublesReader { - void operator()(const std::string &name, const std::string &value, std::tuple &destination) + void operator()(const std::string &, const std::string &value, std::tuple &destination) { size_t commapos = 0; std::get<0>(destination) = std::stod(value, &commapos); @@ -421,10 +421,10 @@ enum class MappingEnum struct ToLowerReader { - void operator()(const std::string &name, const std::string &value, std::string &destination) + void operator()(const std::string &, const std::string &value, std::string &destination) { destination = value; - std::transform(destination.begin(), destination.end(), destination.begin(), ::tolower); + std::transform(destination.begin(), destination.end(), destination.begin(), [](char c) -> char { return static_cast(tolower(c)); }); } }; @@ -657,9 +657,9 @@ TEST_CASE("Nargs work as expected", "[args]") REQUIRE(args::get(f) == false); std::vector vec; - for (int c : b) + for (int be : b) { - vec.push_back(c); + vec.push_back(be); } REQUIRE((vec == std::vector{1, 2, 3})); -- cgit v1.2.1