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
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