diff --git a/src/gallium/state_trackers/clover/util/range.hpp b/src/gallium/state_trackers/clover/util/range.hpp index afa5f77..359edda 100644 --- a/src/gallium/state_trackers/clover/util/range.hpp +++ b/src/gallium/state_trackers/clover/util/range.hpp @@ -362,6 +362,12 @@ namespace clover { return { i, i + n }; } + namespace detail { + template + using fixup_function_type = + typename std::conditional::value, T &, T>::type; + } + /// /// Create a range by transforming the contents of a number of /// source ranges \a rs element-wise using a provided functor \a f. @@ -369,7 +375,7 @@ namespace clover { /// \sa adaptor_range. /// template - adaptor_range + adaptor_range, Rs...> map(F &&f, Rs &&... rs) { return { std::forward(f), std::forward(rs)... }; }