From 3fe9d5965114465ff0028204dfadfc3b4513364a Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 28 May 2017 23:14:26 -0700 Subject: [PATCH] Fix build with wxNO_RTTI, see #17781 --- src/common/appbase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 249afa5018..a2d7202f40 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -684,8 +684,12 @@ void wxAppConsoleBase::OnUnhandledException() #if wxUSE_STL catch ( std::exception& e ) { +#ifdef wxNO_RTTI + what.Printf("std::exception, what() = \"%s\"", e.what()); +#else what.Printf("std::exception of type \"%s\", what() = \"%s\"", typeid(e).name(), e.what()); +#endif } #endif // wxUSE_STL catch ( ... )