How can I match every instance of a template type (struct)?

ag0aep6g anonymous at example.com
Tue Jul 12 13:37:49 UTC 2022


On 12.07.22 15:34, rempas wrote:
> extern (C) void main() {
>    auto obj = make_test(20);
>    static if (is(typeof(obj) == Test)) { printf("YES!!!!!!!\n"); }
> }

static if (is(typeof(obj) == Test!T, T)) { printf("YES!!!!!!!\n"); }


More information about the Digitalmars-d-learn mailing list