- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the documentation for parallel_reduce (https://www.threadingbuildingblocks.org/docs/help/reference/algorithms/parallel_reduce_func.htm). There is a typo in the Functor based implementation signature. Body is a non-const reference, as it will be internally modified with the final result of the reduction.
template<typename Range, typename Body> void parallel_reduce( const Range& range, const Body& body [, partitioner[, task_group_context& group]] );
should be
template<typename Range, typename Body>
void parallel_reduce( const Range& range, Body& body
[, partitioner[, task_group_context& group]] );
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good catch, but a bit more than a "typo".

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page