Fix warning about constness
This commit is contained in:
parent
3854934101
commit
adf7e039cb
@ -1584,7 +1584,7 @@ TEST_CASE("std::optional")
|
|||||||
SECTION("null")
|
SECTION("null")
|
||||||
{
|
{
|
||||||
json j_null;
|
json j_null;
|
||||||
std::optional<std::string> opt_null;
|
std::optional<std::string> const opt_null;
|
||||||
|
|
||||||
CHECK(json(opt_null) == j_null);
|
CHECK(json(opt_null) == j_null);
|
||||||
CHECK(j_null.get<std::optional<std::string>>() == std::nullopt);
|
CHECK(j_null.get<std::optional<std::string>>() == std::nullopt);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user