isExpression with bool template parameter

cal callumenator at gmail.com
Mon Mar 25 16:57:53 PDT 2013


Trying to figure out how to pattern-match struct S below with an 
isExpression:

struct S(A, bool B) {}

static assert ( !is(S!(int, false) _ == S!(U, bool), U) );
static assert ( !is(S!(int, false) _ == S!(U, V), U, V) );
static assert ( !is(S!(int, false) _ == S!(U, V), U, V : bool) );

void main(){}

Can someone help?


More information about the Digitalmars-d-learn mailing list