[#BloombergLP-bslstl-BadWeakPtr-what]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BadWeakPtr.adoc[BadWeakPtr]::what
:relfileprefix: ../../../
:mrdocs:

Return a pointer to the string literal &quot;bad&lowbar;weak&lowbar;ptr&quot;, with a storage duration of the lifetime of the program&period; Note that the caller should _not_ attempt to free this memory&period; Note that the `bsls&lowbar;exceptionutil` macro `BSLS&lowbar;NOTHROW&lowbar;SPEC` is deliberately not used here, as a number of standard libraries declare `what` in the base `exception` class explicitly with the no&hyphen;throw specification, even in a build that may not recognize exceptions&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;badweakptr&period;h&gt;`

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


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