Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/cilk/holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ template <typename A> static void reduce(void *left, void *right) {
}

template <typename A>
using holder = A _Hyperobject(init<A>, reduce<A>);
using holder = A cilk_reducer(init<A>, reduce<A>);

} // namespace cilk

Expand Down
2 changes: 1 addition & 1 deletion include/cilk/opadd_reducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ template <typename T> static void plus(void *l, void *r) {
*static_cast<T *>(l) += *static_cast<T *>(r);
}

template <typename T> using opadd_reducer = T _Hyperobject(zero<T>, plus<T>);
template <typename T> using opadd_reducer = T cilk_reducer(zero<T>, plus<T>);

} // namespace cilk

Expand Down
8 changes: 4 additions & 4 deletions include/cilk/ostream_reducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class ostream_view : public std::basic_ostream<Char, Traits>

};

template<typename Char, typename Traits = std::char_traits<Char>>
using ostream_reducer = ostream_view<Char, Traits>
_Hyperobject(&ostream_view<Char, std::char_traits<Char>>::identity,
&ostream_view<Char, std::char_traits<Char>>::reduce);
template <typename Char, typename Traits = std::char_traits<Char>>
using ostream_reducer = ostream_view<Char, Traits>
cilk_reducer(&ostream_view<Char, Traits>::identity,
&ostream_view<Char, Traits>::reduce);

} // namespace cilk

Expand Down
Loading