Return a pointer to the string literal "bad_weak_ptr", with a storage duration of the lifetime of the program. Note that the caller should not attempt to free this memory. Note that the bsls_exceptionutil macro BSLS_NOTHROW_SPEC is deliberately not used here, as a number of standard libraries declare what in the base exception class explicitly with the no‐throw specification, even in a build that may not recognize exceptions.
Synopsis
Declared in <bslstl_badweakptr.h>
virtual
char const*
what() const noexcept override;
Created with MrDocs