add dv::list(initializer_list<value>)

This commit is contained in:
MihailRis
2024-09-16 19:43:20 +03:00
parent 2aae28e193
commit 3bc329041a
2 changed files with 7 additions and 4 deletions
+1 -4
View File
@@ -10,10 +10,7 @@ TEST(dv, dv) {
auto& obj = list.object();
obj["name"] = "user";
obj["age"] = 90;
auto& position = obj.list("position");
position.add(40);
position.add(-41);
position.add(52);
obj["position"] = dv::list({40, -41, 52});
}
}
{