mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Add documentation for cast_exception function
This commit is contained in:
parent
27767b1aa3
commit
6104df37dc
@ -32,6 +32,14 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
#if defined(__GLIBCXX__) || defined(_LIBCPPABI_VERSION)
|
#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)
|
inline void *cast_exception(void *obj, const std::type_info *src, const std::type_info *dst)
|
||||||
{
|
{
|
||||||
#ifdef __GLIBCXX__
|
#ifdef __GLIBCXX__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user