Skip to content

Commit c9c5ac4

Browse files
committed
fixing the example
1 parent a50ead1 commit c9c5ac4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cppcon2025/cppcon_2025_slides.md

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

292+
Runnable example at https://godbolt.org/z/Efr7bK9jn
293+
292294
---
293295

294296
# Benefits

0 commit comments

Comments
 (0)