[Issue 7426] Inner struct "no size yet for forward reference" when using .tupleof inside it.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 5 20:13:38 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7426
David Simcha <dsimcha at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsimcha at yahoo.com
--- Comment #2 from David Simcha <dsimcha at yahoo.com> 2012-02-05 20:13:36 PST ---
Probably related test case:
struct S {
static if(hasIndirections!(typeof(this))) {}
}
template hasIndirections(T)
{
enum hasIndirections = hasIndirectionsImpl!(T.tupleof);
}
template hasIndirectionsImpl(T...)
{
static if (!T.length)
{
enum hasIndirectionsImpl = false;
}
else
{
enum hasIndirectionsImpl = true;
}
}
--
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