summaryrefslogtreecommitdiff
path: root/Lib/std
diff options
context:
space:
mode:
authorDaniel Vollmer <code@maven.de>2016-09-17 10:26:54 +0200
committerDaniel Vollmer <code@maven.de>2016-09-17 10:26:54 +0200
commit2dc87d7485876d8a7a45d8136014695863e186de (patch)
treebc8f219ebeb88ff8da1f0196bdbe048781ee7270 /Lib/std
parentb138f054e516dcab02db066f5d56e2c7eb93c413 (diff)
downloadswig-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.i4
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
{
};