diff --git a/example/transform_iterator_example.cpp b/example/transform_iterator_example.cpp index 6f51f01..ce1b413 100644 --- a/example/transform_iterator_example.cpp +++ b/example/transform_iterator_example.cpp @@ -16,9 +16,10 @@ namespace boost { template - class binder1st - : public std::unary_function { + 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; @@ -29,7 +30,7 @@ namespace boost { : 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); } }; @@ -72,5 +73,3 @@ main(int, char*[]) return 0; } - -