Commit 6c86036
committed
tests: fix compilation with c++14/17
Fixes:
---------------------------- Captured stderr setup -----------------------------
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pygccxml/build/tests/data/core_types.hpp:57:38: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
57 | int some_function( double hi) const throw( exception ){
| ^~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pygccxml/build/tests/data/core_types.hpp:57:38: note: use 'noexcept(false)' instead
57 | int some_function( double hi) const throw( exception ){
| ^~~~~~~~~~~~~~~~~~
| noexcept(false)
1 error generated.
-----
No need to keep the throws / or to replace it with noexcept.
We are not really testing this functionality here, so lets write code that is generic enough for all c++ versions1 parent 5f6f235 commit 6c86036
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
0 commit comments