Skip to content

Commit b3884eb

Browse files
Removing incorrect slide
1 parent 4fcfb20 commit b3884eb

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

cppcon2025/cppcon_2025_slides.md

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Copies to user data structure.
171171
- Can't specialize (e.g., treat `"123"` as a number)
172172

173173

174-
--
174+
--
175175

176176
# On-Demand
177177

@@ -361,7 +361,7 @@ Player load_player(const std::string& json_str) {
361361
# Benefits
362362

363363
- **No manual field mapping**
364-
- **No maintenance burden**
364+
- **No maintenance burden**
365365
- **Handles nested structures automatically**
366366
- **Performance tuned by the library**
367367

@@ -574,7 +574,7 @@ error_code deserialize(auto& json_value, T& out) {
574574

575575
---
576576

577-
577+
578578
# The template for Statement
579579

580580
The `template for` statement is the key:
@@ -612,32 +612,6 @@ Player p = simdjson::from<Player>(json);
612612
613613
---
614614
615-
# Compile-Time Safety: Catching Errors Before They Run
616-
617-
```cpp
618-
// ❌ COMPILE ERROR: Type mismatch detected
619-
struct BadPlayer {
620-
int username; // Oops, should be string!
621-
};
622-
// simdjson::from<BadPlayer>(json) won't compile if JSON has string
623-
624-
// ❌ COMPILE ERROR: Non-serializable type
625-
struct InvalidType {
626-
std::thread t; // Threads can't be serialized!
627-
};
628-
// simdjson::to_json(InvalidType{}) fails at compile time
629-
630-
// ✅ COMPILE SUCCESS: All types are serializable
631-
struct GoodType {
632-
std::vector<int> numbers;
633-
std::map<std::string, double> scores;
634-
std::optional<std::string> nickname;
635-
};
636-
// All standard containers work automatically!
637-
```
638-
639-
---
640-
641615
# Zero Overhead: Why It's Fast
642616
643617
Since reflection happens at compile time, there's no runtime penalty:

0 commit comments

Comments
 (0)