Fix warning about constness

This commit is contained in:
Alexander Karzhenkov 2023-01-08 11:55:28 +05:00
parent 3854934101
commit adf7e039cb

View File

@ -1584,7 +1584,7 @@ TEST_CASE("std::optional")
SECTION("null")
{
json j_null;
std::optional<std::string> opt_null;
std::optional<std::string> const opt_null;
CHECK(json(opt_null) == j_null);
CHECK(j_null.get<std::optional<std::string>>() == std::nullopt);