namespace boost {
template <class Operation>
- class binder1st
- : public std::unary_function<typename Operation::second_argument_type,
- typename Operation::result_type> {
+ class binder1st {
+ public:
+ typedef typename Operation::result_type result_type;
+ typedef typename Operation::second_argument_type argument_type;
protected:
Operation op;
typename Operation::first_argument_type value;
: op(x), value(y) {}
typename Operation::result_type
operator()(const typename Operation::second_argument_type& x) const {
- return op(value, x);
+ return op(value, x);
}
};
return 0;
}
-
-