Boost Exception

boost/exception/current_exception_cast.hpp

Synopsis

namespace
boost
    {
    template <class E>
    E * current_exception_cast();
    }