Index: src/list.h |
diff --git a/src/list.h b/src/list.h |
index b636449c423b9d9ea7a184de78a3580a49c5780e..00cbd40312025ad8ba2fcc40a1f17b2a8409cd22 100644 |
--- a/src/list.h |
+++ b/src/list.h |
@@ -149,15 +149,12 @@ |
void Iterate(Visitor* visitor); |
// Sort all list entries (using QuickSort) |
- template <typename CompareFunction> |
- void Sort(CompareFunction cmp, size_t start, size_t length); |
- template <typename CompareFunction> |
- void Sort(CompareFunction cmp); |
+ void Sort(int (*cmp)(const T* x, const T* y), size_t start, size_t length); |
+ void Sort(int (*cmp)(const T* x, const T* y)); |
void Sort(); |
- template <typename CompareFunction> |
- void StableSort(CompareFunction cmp, size_t start, size_t length); |
- template <typename CompareFunction> |
- void StableSort(CompareFunction cmp); |
+ void StableSort(int (*cmp)(const T* x, const T* y), size_t start, |
+ size_t length); |
+ void StableSort(int (*cmp)(const T* x, const T* y)); |
void StableSort(); |
INLINE(void Initialize(int capacity, |