swig/Examples/c
Vadim Zeitlin d2546e23ff Don't use exception specification with C++ compiler in example
Support for the exception specifications using types was removed in
C++17 (and "throw ()" in C++20), so don't use them when using the C++
compiler any longer, as this broke the example with recent g++ versions
that use C++17 by default.

We still need them for SWIG, however, so use SWIG_THROW macro, defined
differently for SWIG and the compiler, to preserve the existing
behaviour.

Using %except might be a better idea, but would require more changes.
2021-11-24 20:16:42 +01:00
..
class Show using C++ wrapper API for the "class" example 2021-11-19 02:04:41 +01:00
exception Don't use exception specification with C++ compiler in example 2021-11-24 20:16:42 +01:00
simple Allow having C++ test cases for C backend 2021-11-19 00:08:43 +01:00
std_vector Allow having C++ test cases for C backend 2021-11-19 00:08:43 +01:00
check.list Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00