diff --git a/Lib/octave/octcontainer.swg b/Lib/octave/octcontainer.swg index af58f3aaa..771edbde0 100644 --- a/Lib/octave/octcontainer.swg +++ b/Lib/octave/octcontainer.swg @@ -68,7 +68,7 @@ namespace swig { namespace std { template <> - struct less : public binary_function + struct less { bool operator()(const octave_value& v, const octave_value& w) const diff --git a/Lib/python/pycontainer.swg b/Lib/python/pycontainer.swg index d697ffdac..d40b0baa8 100644 --- a/Lib/python/pycontainer.swg +++ b/Lib/python/pycontainer.swg @@ -108,7 +108,7 @@ namespace swig { namespace std { template <> - struct less : public binary_function + struct less { bool operator()(PyObject * v, PyObject *w) const @@ -133,7 +133,7 @@ namespace std { }; template <> - struct less : public binary_function + struct less { bool operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const @@ -143,7 +143,7 @@ namespace std { }; template <> - struct less : public binary_function + struct less { bool operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const diff --git a/Lib/ruby/rubycontainer.swg b/Lib/ruby/rubycontainer.swg index a6d8a59ef..4f1c6f55e 100644 --- a/Lib/ruby/rubycontainer.swg +++ b/Lib/ruby/rubycontainer.swg @@ -38,7 +38,7 @@ namespace swig { template < class T > - struct yield : public std::unary_function< T, bool > + struct yield { bool operator()( const T& v ) const diff --git a/Lib/ruby/rubystdfunctors.swg b/Lib/ruby/rubystdfunctors.swg index f2050b6f2..5150333cd 100644 --- a/Lib/ruby/rubystdfunctors.swg +++ b/Lib/ruby/rubystdfunctors.swg @@ -90,7 +90,7 @@ namespace swig { static ID call_id = rb_intern("call"); template > - struct BinaryPredicate : GC_VALUE, std::binary_function< _T, _T, bool > + struct BinaryPredicate : GC_VALUE { BinaryPredicate(VALUE obj = Qnil) : GC_VALUE(obj) { } bool operator()(_T a, _T b) const @@ -109,7 +109,7 @@ namespace swig { }; template > - struct BinaryFunction : GC_VALUE, std::binary_function< _T, _T, _T > + struct BinaryFunction : GC_VALUE { BinaryFunction(VALUE obj = Qnil) : GC_VALUE(obj) { } _T operator()(_T a, _T b) const @@ -128,7 +128,7 @@ namespace swig { }; template< class _T = GC_VALUE > - struct UnaryPredicate : GC_VALUE, std::unary_function< _T, bool > + struct UnaryPredicate : GC_VALUE { UnaryPredicate(VALUE obj = Qnil) : GC_VALUE(obj) { } bool operator()(_T a) const @@ -142,7 +142,7 @@ namespace swig { }; template< class _T = GC_VALUE > - struct UnaryFunction : GC_VALUE, std::unary_function< _T, _T > + struct UnaryFunction : GC_VALUE { UnaryFunction(VALUE obj = Qnil) : GC_VALUE(obj) { } _T operator()(_T a) const