[#beman-optional-bad_optional_access-what]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/bad_optional_access.adoc[bad&lowbar;optional&lowbar;access]::what
:relfileprefix: ../../../
:mrdocs:

Get the error message for bad optional access

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
char const*
what() const noexcept;
----

== Return Value

const char&ast;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
