Use std::function instead of a template parameter. Likely doesn't gain anyting, because the template was always instantiated with the same type (the result of std::bind() with the same signatures), but still good practice. std::function was used instead of noncopyable_function because sharded::map_reduce0() copies the input function.
2.9 KiB
2.9 KiB