X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=boost%2Fboost%2Fiterator%2Ftransform_iterator.hpp;h=86565b8365d15df1e2653feb930d13ce0eba94b6;hb=c48091f33a773732fa6c789927e5833e44108d9d;hp=c365fe0175fb5dd6f66cde42b13d4cc9dfd89116;hpb=228c1d22e426e4a97b63a40dcf10a51da0efbf9d;p=lyx.git diff --git a/boost/boost/iterator/transform_iterator.hpp b/boost/boost/iterator/transform_iterator.hpp index c365fe0175..86565b8365 100644 --- a/boost/boost/iterator/transform_iterator.hpp +++ b/boost/boost/iterator/transform_iterator.hpp @@ -20,6 +20,8 @@ #include #include #include +#include + #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1310)) # include @@ -35,33 +37,16 @@ namespace boost namespace detail { - - template - struct function_object_result - { - typedef typename UnaryFunc::result_type type; - }; - -#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - template - struct function_object_result - { - typedef Return type; - }; -#endif - // Compute the iterator_adaptor instantiation to be used for transform_iterator template struct transform_iterator_base { private: // By default, dereferencing the iterator yields the same as - // the function. Do we need to adjust the way - // function_object_result is computed for the standard - // proposal (e.g. using Doug's result_of)? + // the function. typedef typename ia_dflt_help< Reference - , function_object_result + , result_of::reference)> >::type reference; // To get the default for Value: remove any reference on the @@ -113,7 +98,7 @@ namespace boost #endif } - template< + template < class OtherUnaryFunction , class OtherIterator , class OtherReference