← Back to index
|
Original Bugzilla link
Bug 22110 – isCallable fails for template opCall without any templated argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-07T16:14:54Z
Last change time
2021-07-07T22:46:01Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0
by contact — 2021-07-07T16:14:54Z
struct Foo { auto opCall()() { return 1; } } isCallable!Foo is reporting false and it is actually true, because Foo() is possible.
Comment #1
by dlang-bot — 2021-07-07T16:16:41Z
@ljmf00 created dlang/phobos pull request #8161 "Fix #22110: std.traits: isCallable fails for templated opCall" fixing this issue: - Fix #22110: std.traits: isCallable fails for templated opCall Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/phobos/pull/8161
Comment #2
by dlang-bot — 2021-07-07T22:46:01Z
dlang/phobos pull request #8161 "Fix #22110: std.traits: isCallable fails for templated opCall" was merged into master: - af9352a8e4fdee6462648fa226e0f2bb242cb752 by Luís Ferreira: Fix #22110: std.traits: isCallable fails for templated opCall Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/phobos/pull/8161