static foreach considered
Daniel N via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 16 14:21:25 PDT 2015
On Tuesday, 16 June 2015 at 20:39:44 UTC, Daniel N wrote:
> Or is there a better way to accomplish the above?
>
> Daniel
Sorry for the noise, ofc there's a better way...
struct weird(T)
{
static if(T.sizeof<=8)
{
void proto_val(T val);
alias U = ParameterTypeTuple!proto_val;
}
else
{
void proto_ref(const ref T val);
alias U = ParameterTypeTuple!proto_ref;
}
void zzz(U x)
{
}
}
Daniel
More information about the Digitalmars-d
mailing list