On Thursday, 7 November 2013 at 14:31:27 UTC, Agustin wrote:
On Thursday, 7 November 2013 at 12:29:44 UTC, bearophile wrote:
Agustin:

no property 'popFront' for type 'BinaryHeap!(uint[])'

Try to use front and removeFront (I don't know why there is removeFront instead of popFront).

Bye,
bearophile

I had to implement a custom IterableBinaryHeap implementation.

http://pastebin.com/GeVAeCch

    IterableBinaryHeap!(Array!uint, "a < b") heap;
    heap.insert(0);
    heap.insert(3);
    heap.insert(2);
    heap.insert(1);
    foreach(item; heap)
        writeln(item);

The above code was working until i upgrade to DMD32 D Compiler v2.064.

Now i got:
  "Error: cannot uniquely infer foreach argument types"

Help!

Reply via email to