On Thursday, October 10, 2013 21:35:37 Ali Çehreli wrote:
> One of the uses of the is expression determines "whether implicitly
> convertible to". It may work for you:
> 
> public void foo(T, A...)(auto ref A values)
> {
>      static assert(is (T : L));
> }

Actually, checking for implicit conversion will work directly in the template 
signature without a template constraint or static assertion. e.g.

public void foo(T : L, A...)auto ref A values)
{
}

- Jonathan M Davis

Reply via email to