[Issue 20246] isCallable fails for template opCall overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 07:40:37 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20246

--- Comment #7 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
It's impossible to solve this in the general case, and even the special cases
can't be solved in library code, but a __traits could check if the only member
of the template is a callable (potentially also if all possible members would
be callables).

--


More information about the Digitalmars-d-bugs mailing list