Partially instantiating templates?
Simen kjaeraas
simen.kjaras at gmail.com
Tue Feb 1 07:09:22 PST 2011
Magnus Lie Hetland <magnus at hetland.org> wrote:
> Sort of related (though perhaps only remotely) is the following, which
> won't compile (Error: static assert "Bad unary function: f(a) for type
> int"):
Not related. unaryFun and binaryFun are simply glorified string mixins,
and thus can only access functions that are available in the modules
where they are mixed in. That would be std.functional. Because of that,
local functions may not be used as string arguments for *naryFun.
--
Simen
More information about the Digitalmars-d-learn
mailing list