Re: Count template parameters of method

2020-10-12 Thread Andrey via Digitalmars-d-learn
And what about: void test() {} and void text(alias qqq)() {} ?

Re: Count template parameters of method

2020-10-11 Thread Basile B. via Digitalmars-d-learn
On Sunday, 11 October 2020 at 06:53:59 UTC, Andrey wrote: Hello, How to count a number of parameters in uninitialized template method? For example: struct Test { void abc(int a, bool status, string text)() {} { The method "Test.abc" has three template paramenters. I know that

Count template parameters of method

2020-10-11 Thread Andrey via Digitalmars-d-learn
Hello, How to count a number of parameters in uninitialized template method? For example: struct Test { void abc(int a, bool status, string text)() {} { The method "Test.abc" has three template paramenters. I know that "TemplateArgsOf" exists but it is used only for INITIALIZED