[Issue 8995] `is(<Type> <Identifier> == function)` creates tuple with parameter storage classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 10 23:34:16 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8995
--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-11-11 10:34:15 MSK ---
Workaround to remove storage classes:
---
import std.typetuple;
template DeStorage(T) { alias T DeStorage; }
alias staticMap!(DeStorage, ArgsWithStorageClasses) Args;
---
Note, it it's not documented, that `staticMap` will use indexing (`A[x]`)
instead of slicing (`A[x .. x+1]`) and in latter case this workaround will not
work so you have to copy/paste `staticMap` with current behavior to you code.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list