Problem with templated alias as delegate parameter type
Ali Çehreli
acehreli at yahoo.com
Tue Jan 12 21:32:14 UTC 2021
On 1/12/21 12:58 PM, cc wrote:
> void send(T query, void delegate(T.RESPONSE) callback) {
That wants a delegate that takes a T.RESPONSE (PingResponse in this
case). However, the following lambda is in fact a template:
> send(PingQuery("helo"), (resp) {
You specify the type there and it works:
send(PingQuery("helo"), (PingResponse resp) {
Ali
More information about the Digitalmars-d-learn
mailing list