ever see those videos pointing out how bools can be described by other information? generally, bools are often used to describe whether something exists or not "isPublished", true or false? no, it has a publish date. it's obviously published. tutorial ah example but, anyway
One of the core learnings for me from Meeting C++ 2025 was when James McNellis showed that bool has 3 not two possible values. Thats its not just true and false, but can also be undefined/not initialized.
This gonna get clearer when the lightning talk gets published. While bool is true or false, it occupies often a byte in memory, which can hold more states then the two. Which leads to problems with corrupted data, the optimizer assuming only two values or logic building on this.
United States 趨勢
- 1. Kanata 11.6K posts
- 2. Lakers 49.3K posts
- 3. Dillon Brooks 7,087 posts
- 4. Bron 24.8K posts
- 5. Giants 85.5K posts
- 6. #WWERaw 71.6K posts
- 7. Patriots 131K posts
- 8. Dart 36.3K posts
- 9. Suns 19.2K posts
- 10. #AvatarFireAndAsh 3,074 posts
- 11. Collin Gillespie 2,059 posts
- 12. Drake Maye 24.5K posts
- 13. STEAK 10.4K posts
- 14. Ryan Nembhard 4,287 posts
- 15. James Cameron 4,703 posts
- 16. Diaz 33.5K posts
- 17. Devin Williams 7,762 posts
- 18. Gunther 15.3K posts
- 19. Pats 16.3K posts
- 20. Devin Booker 2,646 posts
Something went wrong.
Something went wrong.