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.
We cannot use type_info because GCC and Clang prevent you from doing so when
-fno-rttiis set. So instead, we can provide our API for extracting the type_info information from theexception_ptritself. Luckily access tostd::type_infois available with-fno-rttiis set.