Put Tuple in templates in a class fails
    Xan 
    xancorreu at gmail.com
       
    Thu May 10 07:48:54 PDT 2012
    
    
  
Hi,
I have this code: https://gist.github.com/2653620
and I want to change
public class Algorisme(U,V) {
to
public class Algorisme(V,U...) {
but when I do: https://gist.github.com/2653643
I get error:
prova_amb_tuples_a_Algorisme.d:84: Error: 'alg' is not of 
arithmetic type, it is a 
prova_amb_tuples_a_Algorisme.Algorisme!(int,int).Algorisme
prova_amb_tuples_a_Algorisme.d:84: Error: 'alg2' is not of 
arithmetic type, it is a 
prova_amb_tuples_a_Algorisme.Algorisme!(int,int).Algorisme
What fails?
Thanks in advance,
Xan.
    
    
More information about the Digitalmars-d-learn
mailing list