Skip to content

Commit

Permalink
SWIG: Fix uncaught exception
Browse files Browse the repository at this point in the history
Closes #379
  • Loading branch information
jschueller committed Nov 10, 2024
1 parent e2cbe93 commit c675de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

* Fixed STOGO not registering new optimum ([#504])

* Various minor bugfixes ([#570], [#563])
* Various minor bugfixes ([#570], [#563], [#379])

## NLopt 2.8

Expand Down Expand Up @@ -507,6 +507,7 @@
[#361]: https://github.com/stevengj/nlopt/issues/361
[#365]: https://github.com/stevengj/nlopt/issues/365
[#368]: https://github.com/stevengj/nlopt/issues/368
[#379]: https://github.com/stevengj/nlopt/issues/379
[#409]: https://github.com/stevengj/nlopt/issues/409
[#420]: https://github.com/stevengj/nlopt/issues/420
[#445]: https://github.com/stevengj/nlopt/issues/445
Expand Down
1 change: 1 addition & 0 deletions src/swig/nlopt-exceptions.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

%catches(std::bad_alloc) nlopt::opt::opt();
%catches(std::bad_alloc) nlopt::opt::opt(algorithm a, unsigned n);
%catches(std::bad_alloc,std::invalid_argument) nlopt::opt::opt(const char *algo_str, unsigned n);
%catches(std::bad_alloc) nlopt::opt::opt(const opt& f);
%catches(std::bad_alloc) nlopt::opt::operator=(opt const& f);

Expand Down

0 comments on commit c675de5

Please sign in to comment.