In your example intended approach is to either put `if(someCondition!T)` into original template as another `static if` branch or turn first template into constrained one too.
AFAIK D has intentionally simplified resolution rules to make it
possible to reason about what is best match without referring to
copy of ANSI standard :) And plain unconstrained `T` is thus as
good match as any other.
- template constraints when non-constrain... Manu via Digitalmars-d
- Re: template constraints when non-... Dicebot via Digitalmars-d
- Re: template constraints when non-... Jonathan M Davis via Digitalmars-d
- Re: template constraints when ... Manu via Digitalmars-d
- Re: template constraints when ... Jonathan M Davis via Digitalmars-d
- Re: template constraints w... Manu via Digitalmars-d
- Re: template constraints w... Jonathan M Davis via Digitalmars-d
