From b784ccdebdab97381c332d24be80a690590764db Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 14 Apr 2017 23:20:33 +0300 Subject: [PATCH] One more MSVC fix related to module only name apearing without function name --- include/boost/stacktrace/detail/frame_msvc.ipp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/stacktrace/detail/frame_msvc.ipp b/include/boost/stacktrace/detail/frame_msvc.ipp index 59dcd32..1f4570e 100644 --- a/include/boost/stacktrace/detail/frame_msvc.ipp +++ b/include/boost/stacktrace/detail/frame_msvc.ipp @@ -236,12 +236,17 @@ public: return result; } - // If 'delimiter' is equal to 'std::string::npos' then we have only module name. const std::size_t delimiter = result.find_first_of('!'); if (module_name) { *module_name = result.substr(0, delimiter); } + if (delimiter == std::string::npos) { + // If 'delimiter' is equal to 'std::string::npos' then we have only module name. + result.clear(); + return result; + } + result = minwg_demangling_workaround( result.substr(delimiter + 1) );