From ef54887aa48ec363fb87958b8e29fed6bdb87d8f Mon Sep 17 00:00:00 2001 From: Raphael Grimm Date: Mon, 1 Nov 2021 11:43:44 +0100 Subject: [PATCH] Remove make_unique to make the test c++11 compliant --- tests/src/unit-custom-base-class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-custom-base-class.cpp b/tests/src/unit-custom-base-class.cpp index 94d6ccedc..ffba14935 100644 --- a/tests/src/unit-custom-base-class.cpp +++ b/tests/src/unit-custom-base-class.cpp @@ -173,7 +173,7 @@ TEST_CASE("JSON Node Metadata") { using json = json_with_metadata>; json value; - value.metadata() = std::make_unique(42); + value.metadata().reset(new int(42)); auto moved = std::move(value); CHECK(moved.metadata() != nullptr);