mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 05:22:28 +02:00
Fix an actually invalid test
C++ overload resolution/list initialization rules are hard.
This commit is contained in:
parent
f5cae64e52
commit
0f4978e503
|
@ -1120,7 +1120,7 @@ TEST_CASE("constructors")
|
||||||
|
|
||||||
SECTION("constructor with implicit types (array)")
|
SECTION("constructor with implicit types (array)")
|
||||||
{
|
{
|
||||||
json j {std::move(source)};
|
json j {std::move(source), {}};
|
||||||
CHECK(&j[0][0] == source_addr);
|
CHECK(&j[0][0] == source_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1132,7 +1132,7 @@ TEST_CASE("constructors")
|
||||||
|
|
||||||
SECTION("assignment with implicit types (array)")
|
SECTION("assignment with implicit types (array)")
|
||||||
{
|
{
|
||||||
json j = {std::move(source)};
|
json j = {std::move(source), {}};
|
||||||
CHECK(&j[0][0] == source_addr);
|
CHECK(&j[0][0] == source_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue