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. Cyber Monday 55.2K posts
- 2. Milagro 25.3K posts
- 3. Admiral Bradley 6,725 posts
- 4. TOP CALL 11.9K posts
- 5. MRIs 3,350 posts
- 6. #GivingTuesday 3,513 posts
- 7. MSTR 32.2K posts
- 8. Kalani 4,206 posts
- 9. Jason Lee 2,272 posts
- 10. Shakur 7,400 posts
- 11. Adam Thielen 3,086 posts
- 12. Hartline 3,372 posts
- 13. #jimromeonx N/A
- 14. #Rashmer 19.9K posts
- 15. Alina Habba 42K posts
- 16. Toosii 1,789 posts
- 17. Check Analyze 1,053 posts
- 18. Token Signal 4,179 posts
- 19. Trump's MRI 15.9K posts
- 20. Real ID 5,123 posts
Something went wrong.
Something went wrong.