Comment Comment by tialaramex You're describing what it would do in a sane world where WG21 cared about safety.In this world, as the document you've linked says: "The behavior is undefined if *this does not contain a value."The operators for such access are actually `noexcept` - the exception you're apparently relying on would be illegal. parent tialaramex 2 years ago
In this world, as the document you've linked says: "The behavior is undefined if *this does not contain a value."
The operators for such access are actually `noexcept` - the exception you're apparently relying on would be illegal.