Commit 77893a97 authored by bmeurer's avatar bmeurer Committed by Commit bot

[stl] Fix ZonePriorityQueue wrapper.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1179763002

Cr-Commit-Position: refs/heads/master@{#28921}
parent 1c49127d
......@@ -66,11 +66,13 @@ class ZoneLinkedList : public std::list<T, zone_allocator<T>> {
// A wrapper subclass std::priority_queue to make it easy to construct one
// that uses a zone allocator.
template <typename T, typename Compare = std::less<T>>
class ZonePriorityQueue : public std::priority_queue<T, ZoneVector<T>> {
class ZonePriorityQueue
: public std::priority_queue<T, ZoneVector<T>, Compare> {
public:
// Constructs an empty list.
explicit ZonePriorityQueue(Zone* zone)
: std::priority_queue<T, ZoneVector<T>>(Compare(), ZoneVector<T>(zone)) {}
: std::priority_queue<T, ZoneVector<T>, Compare>(Compare(),
ZoneVector<T>(zone)) {}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment