Răsfoiți Sursa

AS Autobindings: Change Exception base class (fix building with GCC/MinGW)

1vanK 4 ani în urmă
părinte
comite
5bc071b7cb
1 a modificat fișierele cu 2 adăugiri și 6 ștergeri
  1. 2 6
      Source/Tools/BindingGenerator/ASUtils.h

+ 2 - 6
Source/Tools/BindingGenerator/ASUtils.h

@@ -68,13 +68,9 @@ shared_ptr<EnumAnalyzer> FindEnum(const string& name);
 string CppPrimitiveTypeToAS(const string& cppType);
 string CppValueToAS(const string& cppValue);
 
-class Exception : public exception
+class Exception : public runtime_error
 {
-public:
-    Exception(string message)
-        : exception(message.c_str())
-    {
-    }
+    using runtime_error::runtime_error;
 };
 
 bool IsKnownCppType(const string& name);