From 0f4978e503eb378e5efd3f6628ec7af7ca01a3a7 Mon Sep 17 00:00:00 2001 From: Nikita Ofitserov Date: Mon, 24 Jul 2017 01:02:03 +0300 Subject: [PATCH] Fix an actually invalid test C++ overload resolution/list initialization rules are hard. --- test/src/unit-constructor1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-constructor1.cpp b/test/src/unit-constructor1.cpp index 446bb0b3..5130e505 100644 --- a/test/src/unit-constructor1.cpp +++ b/test/src/unit-constructor1.cpp @@ -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); }