fix initialization type
This commit is contained in:
parent
436a454b2e
commit
effad3a6f8
@ -356,7 +356,7 @@ TEST_CASE("Mutable priority queue - first pop", "[MutableSkipHeapPriorityQueue]"
|
|||||||
[](MyValue &l, MyValue &r) { return l.val < r.val; });
|
[](MyValue &l, MyValue &r) { return l.val < r.val; });
|
||||||
q.reserve(count);
|
q.reserve(count);
|
||||||
for (size_t id = 0; id < count; id++) {
|
for (size_t id = 0; id < count; id++) {
|
||||||
MyValue mv{ id, rand()};
|
MyValue mv{ id, rand() / 100.f };
|
||||||
q.push(mv);
|
q.push(mv);
|
||||||
}
|
}
|
||||||
MyValue it = q.top(); // copy
|
MyValue it = q.top(); // copy
|
||||||
|
Loading…
Reference in New Issue
Block a user