https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101659
Bug ID: 101659 Summary: _GLIBCXX_DEBUG mode for std::optional ? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: simon.marchi at polymtl dot ca Target Milestone: --- There doesn't seem to be a version of std::optional with debug runtime checks enabled with _GLIBCXX_DEBUG. It seems to me like it would be useful, to catch "dereferencing" the optional when it doesn't contain a value.