Skip to content

Commit

Permalink
Merge pull request #8371 from pbackus/public-import-forward
Browse files Browse the repository at this point in the history
std.functional: use public import for 'forward'
  • Loading branch information
RazvanN7 committed Feb 2, 2022
2 parents 896b1d0 + fbf8a30 commit 9b12b98
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions std/functional.d
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ import std.traits : isCallable, Parameters;

import std.internal.attributes : betterC;

public import core.lifetime : forward;

private template needOpCallAlias(alias fun)
{
/* Determine whether or not unaryFun and binaryFun need to alias to fun or
Expand Down Expand Up @@ -1845,10 +1847,3 @@ if (isCallable!(F))
static assert(! is(typeof(dg_xtrnC) == typeof(dg_xtrnD)));
}
}

// forward used to be here but was moved to druntime
template forward(args...)
{
import core.lifetime : fun = forward;
alias forward = fun!args;
}

0 comments on commit 9b12b98

Please sign in to comment.