diff --git a/VTIL-Common/io/formatting.hpp b/VTIL-Common/io/formatting.hpp index 7dd21ec..e800682 100644 --- a/VTIL-Common/io/formatting.hpp +++ b/VTIL-Common/io/formatting.hpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include "../util/lt_typeid.hpp" #include "../util/type_helpers.hpp" @@ -166,6 +167,10 @@ namespace vtil::format { return std::to_string( x ); } + else if constexpr ( std::is_base_of_v ) + { + return std::string{ x.what() }; + } else if constexpr ( std::is_same_v || std::is_same_v ) {