We cannot use type_info because GCC and Clang prevent you from doing so when -fno-rtti is set. So instead, we can provide our API for extracting the type_info information from the exception_ptr itself. Luckily access to std::type_info is available with -fno-rtti is set.