On Tue, Jul 12, 2022 at 01:56:11PM +0000, rempas via Digitalmars-d-learn wrote:
> On Tuesday, 12 July 2022 at 13:37:49 UTC, ag0aep6g wrote:
> > 
> > static if (is(typeof(obj) == Test!T, T)) { printf("YES!!!!!!!\n"); }
> 
> Haaaaaah? Ok, what does this work anyway? I thought you needed
> parenthesis for more than 1 templated arguments...

If your template has multiple parameters, just write:

        static if (is(typeof(obj) == Test!Args, Args...)) ...


T

-- 
Don't drink and derive. Alcohol and algebra don't mix.

Reply via email to