Skip to content

Commit 41d7231

Browse files
Trimming further.
1 parent 765ad11 commit 41d7231

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -459,32 +459,6 @@ Meeting m = simdjson::from<Meeting>(json);
459459

460460
---
461461

462-
# Round-Trip Any Data Structure
463-
464-
```cpp
465-
struct TodoItem {
466-
std::string task;
467-
bool completed;
468-
std::optional<std::string> due_date;
469-
};
470-
471-
struct TodoList {
472-
std::string owner;
473-
std::vector<TodoItem> items;
474-
std::map<std::string, int> tags; // tag -> count
475-
};
476-
477-
// Serialize complex nested structures
478-
TodoList my_todos = { /* ... */ };
479-
std::string json = simdjson::to_json(my_todos);
480-
481-
// Deserialize back - perfect round-trip
482-
TodoList restored = simdjson::from<TodoList>(json);
483-
assert(my_todos == restored); // Works if you define operator==
484-
```
485-
486-
---
487-
488462
# The Entire API Surface
489463

490464
Just two functions. Infinite possibilities.
@@ -496,8 +470,7 @@ simdjson::from<T>(json) // → T object
496470
497471
That's it.
498472
499-
No macros. No code generation. No external tools.
500-
473+
No macros. No class/struct instrusion. No external tools.
501474
Just simdjson leveraging C++26 reflection.
502475
503476
---

0 commit comments

Comments
 (0)