BloombergLP::bsls::BslExceptionUtil::throwBadCast

Throw a bsl::bad_cast exception if exceptions are enabled in the current build mode, otherwise abort the program. bsl::bad_cast will be an alias for the platform's std::bad_cast class, to ensure both ABI and API compatibility with non-BDE code relying on the standard exception hierarchy.

Synopsis

Declared in <bsls_bslexceptionutil.h>

[[noreturn]]
static
void
throwBadCast();

Return Value

NOTE

This function does not return.