Comment Comment by volta83 > You need some way to enforce that the orderings are the _same_Just require that the Ord type is the same for all heaps ?MaxHeap(MaxHeap(T, MyOrd), MyOrd) uses the same ordering, but MaxHeap(MaxHeap(T, Ord0), Ord1) does not. parent volta83 4 years ago
Just require that the Ord type is the same for all heaps ?
MaxHeap(MaxHeap(T, MyOrd), MyOrd) uses the same ordering, but MaxHeap(MaxHeap(T, Ord0), Ord1) does not.