mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Merge pull request #8364 from FeepingCreature/fix/issue-22701-remove-is-typeof-in-apply
Fix issue 22701: Remove is(typeof()) callable check in std.typecons.apply.
This commit is contained in:
commit
896b1d0e1e
1 changed files with 1 additions and 1 deletions
|
@ -4042,7 +4042,7 @@ template apply(alias fun)
|
|||
import std.functional : unaryFun;
|
||||
|
||||
auto apply(T)(auto ref T t)
|
||||
if (isInstanceOf!(Nullable, T) && is(typeof(unaryFun!fun(T.init.get))))
|
||||
if (isInstanceOf!(Nullable, T))
|
||||
{
|
||||
alias FunType = typeof(unaryFun!fun(T.init.get));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue