diff --git a/include/boost/exception/detail/type_info.hpp b/include/boost/exception/detail/type_info.hpp index 8aaee8d..e752d42 100644 --- a/include/boost/exception/detail/type_info.hpp +++ b/include/boost/exception/detail/type_info.hpp @@ -17,7 +17,11 @@ boost char const * type_name() { +#ifdef BOOST_NO_TYPEID return BOOST_CURRENT_FUNCTION; +#else + return typeid(T).name(); +#endif } namespace