You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Typeid cannot be used when -fno-rtti is used.
Fixed compilation of generated sources on arm-none-eabi-g++ 13.1.
* fully compile time type deduction for GCC and clang
* Restored exception message
---------
Co-authored-by: Herb Sutter <[email protected]>
auto err = std::string{"exceptions are disabled with -fno-exceptions - attempted to throw exception with type \"" + typeid(decltype(x)).name() + "\""};
776
+
auto err = std::string{"exceptions are disabled with -fno-exceptions - attempted to throw exception with type \""};
777
+
778
+
#ifdef CPP2_NO_RTTI
779
+
err += type_name<decltype(x)>();
780
+
#else
781
+
err += typeid(decltype(x)).name();
782
+
#endif
783
+
err += "\"";
731
784
if (msg) {
732
-
err += " and the message \"" + msg + "\"";
785
+
err += std::string{" and the message \""} + msg + "\"";
0 commit comments