Null and IFTI
    Timon Gehr 
    timon.gehr at gmx.ch
       
    Sun Dec 11 04:03:39 PST 2011
    
    
  
On 12/11/2011 04:04 AM, Andrew Wiley wrote:
> ---
> 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?
It is very possible that it will work in 2.057, because the null literal 
gets an own type.
    
    
More information about the Digitalmars-d
mailing list