Browse Source

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

1vanK 4 years ago
parent
commit
5bc071b7cb
1 changed files with 2 additions and 6 deletions
  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);