Add usage of emplace with tuple

This commit is contained in:
Patrick Pelissier committed 2022-06-04 23:44:22 +02:00
1 parent 47e32ab2b3
commit a4267d60df
1 file changed
+1
+1
View File
@@ -48,6 +48,7 @@ int main(void)
M_LET(base, base_t) {
// Read the JSON file and fill-in base
read(base, "ex11-json01.json");
base_emplace_back(base, STRING_CTE("John"), 40, false);
// Print the contents of base:
printf ("List of presents:\n");
for M_EACH(el, base, base_t) {