Constraining template's function parameter signature

2012-06-14 Thread Tommi
I'm trying to constrain a struct template based on a parameter that's supposed be a function with a certain signature. Difficult to explain, easier just to show the problem: module pseudorange; struct PseudoInputRange(T, alias advance) //The next line doesn't compile //if

Re: Constraining template's function parameter signature

2012-06-14 Thread Timon Gehr
On 06/14/2012 02:57 PM, Tommi wrote: I'm trying to constrain a struct template based on a parameter that's supposed be a function with a certain signature. Difficult to explain, easier just to show the problem: module pseudorange; struct PseudoInputRange(T, alias advance) //The next line