Build fails with the compiler that is C++20 by default: error: ISO C++17 does not allow dynamic exception specifications
You don't set the C++ level and use feature(s) that are deprecated in C++20:
In file included from linsol.cc:51:
./naivewrap.h:59:20: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
void Factor(void) throw(LinearSolver::ErrFactor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./naivewrap.h:59:20: note: use 'noexcept(false)' instead
void Factor(void) throw(LinearSolver::ErrFactor);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
noexcept(false)
1 error generated.
Please:
- remove the use of deprecated features
- add the option to set the C++ level
Version: 1.7.3
clang-16
FreeBSD 14
Edited by Yuri Vic