Merge topic 'remove_bad_assert'

c07c37ae Remove assert for incorrect assumption new TBB::RBK impl.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robert.maynard@kitware.com>
Merge-request: !938
This commit is contained in:
Allison Vacanti 2017-09-19 13:15:22 +00:00 committed by Kitware Robot
commit c4c05d8b72

@ -472,9 +472,6 @@ struct ReduceByKeyBody
{
// Sanity check:
VTKM_ASSERT(srcBegin < srcEnd);
// Not necessary for the copy call to be safe, but if the src range
// overlaps with the dst range there's a problem with the algorithm:
VTKM_ASSERT(dstBegin + (srcEnd - srcBegin) <= srcBegin);
std::copy(keys + srcBegin, keys + srcEnd, keys + dstBegin);
std::copy(values + srcBegin, values + srcEnd, values + dstBegin);
}