Skip to content

Commit

Permalink
Merge pull request lballabio#445.
Browse files Browse the repository at this point in the history
Don't use deprecated `std::unary_function` in wrappers
  • Loading branch information
lballabio authored Feb 18, 2022
2 parents 0ff0103 + 1b1005d commit 0cc2dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SWIG/functions.i
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class UnaryFunctionDelegate {
}
};

class UnaryFunction : public std::unary_function<Real, Real> {
class UnaryFunction {
public:
UnaryFunction(UnaryFunctionDelegate* delegate)
: delegate_(delegate) { }
Expand Down Expand Up @@ -290,7 +290,7 @@ class UnaryFunctionDelegate {
};
};

class UnaryFunction : public std::unary_function<Real, Real> {
class UnaryFunction {
public:
UnaryFunction(UnaryFunctionDelegate* delegate)
: delegate_(delegate) { }
Expand Down

0 comments on commit 0cc2dd4

Please sign in to comment.