Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is with a prior .has_value call. It's not correct without. It's simple, and covered by static analysis. This is not an issue in real code, it's a pathologic error that doesn't actually happen. Like most anti c++ examples.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: