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.4K posts
- 2. Milagro 25.5K posts
- 3. Admiral Bradley 6,953 posts
- 4. TOP CALL 11.9K posts
- 5. MRIs 3,384 posts
- 6. #GivingTuesday 3,523 posts
- 7. Kalani 4,262 posts
- 8. MSTR 32.3K posts
- 9. Jason Lee 2,272 posts
- 10. Shakur 7,468 posts
- 11. Adam Thielen 3,104 posts
- 12. Hartline 3,384 posts
- 13. #jimromeonx N/A
- 14. #Rashmer 19.9K posts
- 15. Alina Habba 42.4K posts
- 16. Toosii 1,800 posts
- 17. Check Analyze 1,059 posts
- 18. Token Signal 4,197 posts
- 19. Trump's MRI 16K posts
- 20. REAL ID 5,288 posts
Something went wrong.
Something went wrong.