diff options
author | Daniel Vollmer <code@maven.de> | 2016-09-17 10:26:54 +0200 |
---|---|---|
committer | Daniel Vollmer <code@maven.de> | 2016-09-17 10:26:54 +0200 |
commit | 2dc87d7485876d8a7a45d8136014695863e186de (patch) | |
tree | bc8f219ebeb88ff8da1f0196bdbe048781ee7270 /Lib/std | |
parent | b138f054e516dcab02db066f5d56e2c7eb93c413 (diff) | |
download | swig-2dc87d7485876d8a7a45d8136014695863e186de.tar.gz |
Add std::bad_cast to std_except.i
This exception occurs when dynamic_cast<T&> fails.
Fixes #783.
Diffstat (limited to 'Lib/std')
-rw-r--r-- | Lib/std/std_except.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/std/std_except.i b/Lib/std/std_except.i index 75b8d0fd6..c8820c2c5 100644 --- a/Lib/std/std_except.i +++ b/Lib/std/std_except.i @@ -15,6 +15,10 @@ namespace std { virtual const char* what() const throw(); }; + struct bad_cast : exception + { + }; + struct bad_exception : exception { }; |