Skip to content

Commit a2eaa19

Browse files
Small fixes
1 parent a50ead1 commit a2eaa19

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,18 @@ void save_player(const Player& p) {
285285
```cpp
286286
// Deserialization - one line!
287287
Player load_player(const std::string& json_str) {
288-
return simdjson::from<Player>(json_str); // That's it!
288+
return simdjson::from(json_str); // That's it!
289289
}
290290
```
291291

292292
---
293293

294-
# Benefits
294+
# Benefits of our implementation
295295

296296
- **No manual field mapping**
297297
- **No maintenance burden**
298-
- **Handles nested structures automatically**
298+
- **Handles nested and user-defined structures and containers automatically**
299+
- **You can still customize things if you want**
299300
- **Performance tuned by the library**
300301

301302
---
@@ -351,7 +352,7 @@ let player: Player = serde_json::from_str(&json_str)?;
351352

352353
```cpp
353354
std::string json_str = simdjson::to_json(player);
354-
Player player = simdjson::from<Player>(json_str);
355+
Player player = simdjson::from(json_str);
355356
```
356357

357358
- no extra tooling required

0 commit comments

Comments
 (0)