提交 0f4978e5 编写于 作者: N Nikita Ofitserov

Fix an actually invalid test

C++ overload resolution/list initialization rules are hard.
上级 f5cae64e
......@@ -1120,7 +1120,7 @@ TEST_CASE("constructors")
SECTION("constructor with implicit types (array)")
{
json j {std::move(source)};
json j {std::move(source), {}};
CHECK(&j[0][0] == source_addr);
}
......@@ -1132,7 +1132,7 @@ TEST_CASE("constructors")
SECTION("assignment with implicit types (array)")
{
json j = {std::move(source)};
json j = {std::move(source), {}};
CHECK(&j[0][0] == source_addr);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册