diff --git a/include/boost/compute/algorithm/detail/inplace_reduce.hpp b/include/boost/compute/algorithm/detail/inplace_reduce.hpp index 4fb4f261..e9637644 100644 --- a/include/boost/compute/algorithm/detail/inplace_reduce.hpp +++ b/include/boost/compute/algorithm/detail/inplace_reduce.hpp @@ -33,7 +33,7 @@ inline void inplace_reduce(Iterator first, std::iterator_traits::value_type value_type; typedef typename - boost::result_of::type + boost::tr1_result_of::type result_type; size_t input_size = iterator_range_size(first, last); diff --git a/include/boost/compute/algorithm/reduce.hpp b/include/boost/compute/algorithm/reduce.hpp index 074cb1eb..c2f7e449 100644 --- a/include/boost/compute/algorithm/reduce.hpp +++ b/include/boost/compute/algorithm/reduce.hpp @@ -41,7 +41,7 @@ size_t reduce(InputIterator first, std::iterator_traits::value_type input_type; typedef typename - boost::result_of::type + boost::tr1_result_of::type result_type; const context &context = queue.get_context(); @@ -120,7 +120,7 @@ size_t reduce(InputIterator first, template inline vector< - typename boost::result_of< + typename boost::tr1_result_of< BinaryFunction( typename std::iterator_traits::value_type, typename std::iterator_traits::value_type @@ -137,7 +137,7 @@ block_reduce(InputIterator first, std::iterator_traits::value_type input_type; typedef typename - boost::result_of::type + boost::tr1_result_of::type result_type; const context &context = queue.get_context(); @@ -163,7 +163,7 @@ inline T reduce(InputIterator first, std::iterator_traits::value_type input_type; typedef typename - boost::result_of::type + boost::tr1_result_of::type result_type; size_t count = detail::iterator_range_size(first, last); diff --git a/include/boost/compute/iterator/adjacent_transform_iterator.hpp b/include/boost/compute/iterator/adjacent_transform_iterator.hpp index 2c4b487a..25ce4b41 100644 --- a/include/boost/compute/iterator/adjacent_transform_iterator.hpp +++ b/include/boost/compute/iterator/adjacent_transform_iterator.hpp @@ -39,7 +39,9 @@ struct make_adjacent_transform_iterator_value_type { typedef typename std::iterator_traits::value_type value_type; - typedef typename boost::result_of::type type; + typedef typename + boost::tr1_result_of::type + type; }; // helper class which defines the iterator_adaptor super-class diff --git a/include/boost/compute/iterator/binary_transform_iterator.hpp b/include/boost/compute/iterator/binary_transform_iterator.hpp index 7f10a1d9..c5827ce0 100644 --- a/include/boost/compute/iterator/binary_transform_iterator.hpp +++ b/include/boost/compute/iterator/binary_transform_iterator.hpp @@ -40,7 +40,9 @@ struct make_binary_transform_iterator_value_type typedef typename std::iterator_traits::value_type value_type1; typedef typename std::iterator_traits::value_type value_type2; - typedef typename boost::result_of::type type; + typedef typename + boost::tr1_result_of::type + type; }; // helper class which defines the iterator_facade super-class diff --git a/include/boost/compute/iterator/function_input_iterator.hpp b/include/boost/compute/iterator/function_input_iterator.hpp index a005aa43..f7e24582 100644 --- a/include/boost/compute/iterator/function_input_iterator.hpp +++ b/include/boost/compute/iterator/function_input_iterator.hpp @@ -37,16 +37,16 @@ class function_input_iterator_base public: typedef ::boost::iterator_facade< ::boost::compute::function_input_iterator, - typename ::boost::result_of::type, + typename ::boost::tr1_result_of::type, ::std::random_access_iterator_tag, - typename ::boost::result_of::type + typename ::boost::tr1_result_of::type > type; }; template struct function_input_iterator_expr { - typedef typename ::boost::result_of::type result_type; + typedef typename ::boost::tr1_result_of::type result_type; function_input_iterator_expr(const Function &function) : m_function(function) diff --git a/include/boost/compute/iterator/transform_iterator.hpp b/include/boost/compute/iterator/transform_iterator.hpp index 65fb435e..03f44fdb 100644 --- a/include/boost/compute/iterator/transform_iterator.hpp +++ b/include/boost/compute/iterator/transform_iterator.hpp @@ -41,7 +41,7 @@ struct make_transform_iterator_value_type { typedef typename std::iterator_traits::value_type value_type; - typedef typename boost::result_of::type type; + typedef typename boost::tr1_result_of::type type; }; // helper class which defines the iterator_adaptor super-class diff --git a/include/boost/compute/lambda/context.hpp b/include/boost/compute/lambda/context.hpp index 0ba43c42..12dbe11a 100644 --- a/include/boost/compute/lambda/context.hpp +++ b/include/boost/compute/lambda/context.hpp @@ -214,7 +214,7 @@ namespace detail { template struct invoked_unary_expression { - typedef typename ::boost::result_of::type result_type; + typedef typename ::boost::tr1_result_of::type result_type; invoked_unary_expression(const std::string &expr, const Arg &arg) : m_expr(expr), @@ -256,7 +256,7 @@ operator<<(boost::compute::detail::meta_kernel &kernel, template struct invoked_binary_expression { - typedef typename ::boost::result_of::type result_type; + typedef typename ::boost::tr1_result_of::type result_type; invoked_binary_expression(const std::string &expr, const Arg1 &arg1, @@ -357,11 +357,13 @@ struct expression : proto::extends, domain> }; ::boost::compute::detail::meta_kernel_variable< - typename ::boost::result_of()>::type + typename ::boost::tr1_result_of()>::type > operator()() const { - typedef typename ::boost::result_of()>::type result_type; + typedef typename + ::boost::tr1_result_of()>::type + result_type; context ctx; proto::eval(*this, ctx);