Remove make_unique to make the test c++11 compliant

This commit is contained in:
Raphael Grimm 2021-11-01 11:43:44 +01:00 committed by barcode
parent 004634821f
commit ef54887aa4

View File

@ -173,7 +173,7 @@ TEST_CASE("JSON Node Metadata")
{
using json = json_with_metadata<std::unique_ptr<int>>;
json value;
value.metadata() = std::make_unique<int>(42);
value.metadata().reset(new int(42));
auto moved = std::move(value);
CHECK(moved.metadata() != nullptr);