Reviewers: jarin,

Description:
[stl] Fix ZonePriorityQueue wrapper.

[email protected]

Please review this at https://codereview.chromium.org/1179763002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+4, -2 lines):
  M src/zone-containers.h


Index: src/zone-containers.h
diff --git a/src/zone-containers.h b/src/zone-containers.h
index fc57c04adc56a394241e93380aca9de7cccf328a..8daf0dd657f232f070953f65fbe0930dd484e088 100644
--- a/src/zone-containers.h
+++ b/src/zone-containers.h
@@ -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)) {}
 };




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to