Add documentation for cast_exception function

This commit is contained in:
Julian Brost 2020-10-20 11:21:30 +02:00
parent 27767b1aa3
commit 6104df37dc

View File

@ -32,6 +32,14 @@ public:
#if defined(__GLIBCXX__) || defined(_LIBCPPABI_VERSION)
/**
* Attempts to cast an exception to a destination type
*
* @param obj Exception to be casted
* @param src Type information of obj
* @param dst Information of which type to cast to
* @return Pointer to the exception if the cast is possible, nullptr otherwise
*/
inline void *cast_exception(void *obj, const std::type_info *src, const std::type_info *dst)
{
#ifdef __GLIBCXX__