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

std::optional<std::monostate> has two values, Option<Infallible> has one, so by my counting that's a 100% error.

It is likely the best that can be done, but that's my point, C++ can't do this because the foundational type system isn't up to the task.



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

Search: