Remove make_unique to make the test c++11 compliant
This commit is contained in:
parent
004634821f
commit
ef54887aa4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user