Shared and its implications

Code



Compilation output:

Queue's T: Packet popFront's T: shared(Packet) /d840/f629.d(65): Error: template f629.popFront does not match any function template declaration. Candidates are: /d840/f629.d(36): f629.popFront(T)(ref T[] a) /d840/f629.d(65): Error: template f629.popFront(T)(ref T[] a) cannot deduce template function from argument types !()(shared(Packet[])) /d840/f629.d(66): Error: cannot implicitly convert expression (result) of type shared(Packet) to Packet /d840/f629.d(61): Error: function f629.Queue!(Packet).QueueImpl.pop no return exp; or assert(0); at end of function /d840/f629.d(73): Error: undefined identifier move, did you mean template save(T)(T[] a)? /d840/f629.d(90): Error: template instance f629.Queue!(Packet) error instantiating pushBack's T: shared(Packet) /d840/f629.d(96): Error: template f629.pushBack does not match any function template declaration. Candidates are: /d840/f629.d(28): f629.pushBack(T)(ref T[] a, T v) /d840/f629.d(96): Error: template f629.pushBack(T)(ref T[] a, T v) cannot deduce template function from argument types !()(shared(Packet[]), shared(Packet))

Paste info


Author: Guest
Views: 644
Private: no
Expires: Never
Uploaded: 25.01.14 12:57
Votes: 0

Compilation


Compiler: DMD 2.077.1 ( 2.077.1 )
Pointer size: m64

Actions