Skip to content

Commit a0cbe18

Browse files
Removing target types from simdjson::from call
1 parent 83ccc62 commit a0cbe18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Player deserialize_Player(const json& j) {
391391
```cpp
392392
// Simplified snippet, members stores information about the class
393393
// obtained via std::define_static_array(std::meta::nonstatic_data_members_of(^^T, ...))...
394-
simdjson::ondemand::object obj;
394+
ondemand::object obj;
395395

396396
template for (constexpr auto member : members) {
397397
// These are compile-time constants
@@ -449,7 +449,7 @@ std::string json = simdjson::to_json(Meeting{
449449
.is_recurring = true
450450
});
451451
452-
Meeting m = simdjson::from<Meeting>(json);
452+
Meeting m = simdjson::from(json);
453453
```
454454

455455
---

0 commit comments

Comments
 (0)