[Issue 21452] New: isCallable erroneously returns false on function templates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 3 21:32:46 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21452
Issue ID: 21452
Summary: isCallable erroneously returns false on function
templates
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
https://dlang.org/phobos/std_traits.html#isCallable reads:
Detect whether T is a callable object, which can be called with the function
call operator (...).
However, function templates f that can be called using f!() aren't considered
isCallable!f, but certainly can.
The case of function templates that can infer their arguments from run-time
arguments won't be easy or even possible.
--
More information about the Digitalmars-d-bugs
mailing list