From 6ce57af06d2b48778904feb1154d4d8b93beaf74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20B=C3=B6l=C3=BCk?= Date: Mon, 24 Aug 2020 00:23:30 +0200 Subject: [PATCH] Adding exception ::as_string, --- VTIL-Common/io/formatting.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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 ) {