Fix compilation failure and warnings with NVHPC (#4744)

* 🚨 fix warnings

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🚨 fix warnings

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* ⚗️ enable ranges support

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔥 remove ci_nvhpc job

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* ⚗️ enable ranges support

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔥 remove ci_nvhpc job

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🚨 fix warning

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2025-04-16 16:09:21 +02:00
committed by GitHub
parent 96c1b52f1c
commit 88c92e605c
6 changed files with 12 additions and 6 deletions

View File

@@ -566,7 +566,7 @@ TEST_CASE("regression tests 2")
const auto length = 300;
json dump_test;
dump_test["1"] = std::string(length, -1);
dump_test["1"] = std::string(length, static_cast<std::string::value_type>(-1));
std::string expected = R"({"1":")";
for (int i = 0; i < length; ++i)
@@ -583,7 +583,7 @@ TEST_CASE("regression tests 2")
const auto length = 500;
json dump_test;
dump_test["1"] = std::string(length, -2);
dump_test["1"] = std::string(length, static_cast<std::string::value_type>(-2));
std::string expected = R"({"1":")";
for (int i = 0; i < length; ++i)