diff --git a/src/platform/exception_type.hpp b/src/platform/exception_type.hpp index 6d87545..25d44b6 100644 --- a/src/platform/exception_type.hpp +++ b/src/platform/exception_type.hpp @@ -14,7 +14,7 @@ namespace cpptrace { namespace detail { inline std::string exception_type_name() { #if CPPTRACE_HAS_CXX_EXCEPTION_TYPE && defined(__GLIBCXX__) || defined(__GLIBCPP__) || defined(_LIBCPP_VERSION) - std::type_info* t = abi::__cxa_current_exception_type(); + const std::type_info* t = abi::__cxa_current_exception_type(); return t ? detail::demangle(t->name()) : ""; #else return "";