diff --git a/Lib/std/std_except.i b/Lib/std/std_except.i index 587bb3150..53562c835 100644 --- a/Lib/std/std_except.i +++ b/Lib/std/std_except.i @@ -27,7 +27,7 @@ } else { SWIG_fail; } %} -#elif +#else %include "exception.i" %typemap(throws) std::out_of_range %{ SWIG_exception(SWIG_IndexError, $1.what()); %}