Skip to content

Commit

Permalink
SWIG: Fix unknown std::runtime_error
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Oct 26, 2024
1 parent ee7d4a9 commit a65ff40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/swig/nlopt.i
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ can be found at the NLopt web page: http://ab-initio.mit.edu/nlopt"
#include "nlopt.hpp"
%}

#define SWIG_STD_EXCEPTIONS_AS_CLASSES

%include "std_string.i"
%include "std_except.i"
%include "std_vector.i"
namespace std {
%template(nlopt_doublevector) vector<double>;
Expand Down

0 comments on commit a65ff40

Please sign in to comment.