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);