[Issue 415] conflicting template functions overloads

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 9 18:17:27 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=415


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |golovanov_alexey at mail.ru




------- Comment #1 from davidl at 126.com  2006-10-09 20:17 -------
void arraycopy( T,U )( T[] src, T[] trg, U length ){
 static if (is(U: int)) //now uint ,int and other type can implicitly cast to
                        //int can be processed
 {
   // do ur job here
 }
}

void main(){
    char[] a, b;
    arraycopy( a, b, 1 ); //(1)
    arraycopy( a, b, a.length ); //(2)
}


-- 




More information about the Digitalmars-d-bugs mailing list