Null and IFTI

Andrew Wiley wiley.andrew.j at gmail.com
Sat Dec 10 19:04:27 PST 2011


---
class Bob {
}

void doSomething(T)(Bob bob, T data) {
}

void main() {
	doSomething(null, 5); // Error: template test.doSomething(T) does not
match any function template declaration
        // Error: template test.doSomething(T) cannot deduce template
function from argument types !()(void*,int)
}
---

Bug?


More information about the Digitalmars-d mailing list