[Issue 16744] We should have a TypeOf template so that typeof can be used with templates like staticMap
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 7 17:43:57 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16744
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.loughran.colvin at gmail.
| |com
--- Comment #1 from John Colvin <john.loughran.colvin at gmail.com> ---
A more general alternative might be to (and brace yourself because you're
probably not gonna like it) introduce string template lambdas.
staticMap!(`a.sizeof`, args);
staticMap!(q{typeof(a)}, args);
--
More information about the Digitalmars-d-bugs
mailing list