Skip to content

Commit 3a10ac5

Browse files
added compare to inplace merge
1 parent 36f9f9d commit 3a10ac5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/osp/bsp/scheduler/GreedySchedulers/GrowLocalMaxBsp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ReturnStatus GrowLocalSSP<GraphT>::ComputeSchedule(MaxBspSchedule<GraphT> &sched
148148
const typename std::deque<VertexType>::difference_type lengthCurrentlyReady
149149
= std::distance(currentlyReady.begin(), currentlyReady.end());
150150
currentlyReady.insert(currentlyReady.end(), stepFutureReady.begin(), stepFutureReady.end());
151-
std::inplace_merge(currentlyReady.begin(), std::next(currentlyReady.begin(), lengthCurrentlyReady), currentlyReady.end());
151+
std::inplace_merge(currentlyReady.begin(), std::next(currentlyReady.begin(), lengthCurrentlyReady), currentlyReady.end(), std::less<>{});
152152

153153
const typename std::deque<VertexType>::difference_type maxCurrentlyReadyUsage
154154
= std::max(static_cast<typename std::deque<VertexType>::difference_type>(

0 commit comments

Comments
 (0)