--- D:/users/debionne/dev/boost/boost_1_39_0/libs/iterator/test/transform_iterator_test.cpp Fri Jul 31 10:46:13 2009 +++ D:/users/debionne/dev/boost/clean/boost_1_39_0/libs/iterator/test/transform_iterator_test.cpp Sun Feb 25 17:28:02 2007 @@ -102,16 +102,6 @@ return arg*2; } -struct polymorphic_mult_functor -{ - //Implement result_of protocol - template struct result; - template struct result {typedef T type;}; - - template - typename result::type - operator()(const T& _arg) const {return _arg*2;} -}; int main() @@ -252,26 +242,6 @@ ++boost::make_transform_iterator((pair_t*)values, select_first()) , boost::make_transform_iterator((pair_t*)values, const_select_first()) ); - } - - // Test transform_iterator with polymorphic object function - { - int x[N], y[N]; - for (int k = 0; k < N; ++k) - x[k] = k; - std::copy(x, x + N, y); - - for (int k2 = 0; k2 < N; ++k2) - x[k2] = x[k2] * 2; - - boost::input_iterator_test( - boost::make_transform_iterator(y, polymorphic_mult_functor()), x[0], x[1]); - - boost::input_iterator_test( - boost::make_transform_iterator(&y[0], polymorphic_mult_functor()), x[0], x[1]); - - boost::random_access_readable_iterator_test( - boost::make_transform_iterator(y, polymorphic_mult_functor()), N, x); } return boost::report_errors();